Ubuntu :: Setting Up A Cron Job On DD-WRT Router To Execute A WOL Command

Oct 9, 2010

I am setting up a cron job on my DD-WRT router to execute a WOL command, and would like to know if what I have is correct.

Format:

Execute @ 12:00 on Wed, Thur, Fri, Sat every month/Yr

0 12 * * 2345 root /usr/sbin/wol -i 192.168.1.255 00:00:00:00:00:00

View 3 Replies


ADVERTISEMENT

SUSE :: Automate Execute Command, Reboot And Execute Command?

Dec 1, 2008

Is there a way to execute some command and then after the command completes utomatically reboot the system and then after the system reboots execute another command ? For example look at the sequence shown below(1) Execute command-1(2) After the command-1 in (1) is completed,reboot the system (3) Execute command-2(4) After execution of command-2 reboot the sytemIs there a way i can automate this process so that i need not reboot the system manually

View 5 Replies View Related

Networking :: Setting Up Linux Box As IPv6 Router To Replace Netgear WNR1000 Wireless Router?

Jun 18, 2011

I want to set up a Linux box as a wireless router to replace our existing Netgear WNR1000 router, as I believe the Netgear does not support the coming IPv6 protocol. Unfortunately, it is not flashable with OpenWRT or DD-WRT presently.

As we have Comcast, our cable modem acts as a dumb modem according to the customer support guy I talked to, and our router is the one that asks for the IP address from DHCP. Thus, when Comcast switches over to IPv6, I don't believe my existing router would work, correct?

My idea is to take a Linux box and put two NICs and a wireless adapter in it, using IPCop or Smoothwall to set up a router. I could then enable IPv6 support for when we have IPv6 with Comcast. Is that possible? Would there be a way to get BIND to hand out private IP addresses in the same subnet on the both the LAN NIC and the wireless card?

View 1 Replies View Related

Ubuntu :: Script Executes Manually / Won't Execute With Cron

Jul 21, 2011

I've written a script that restarts the server of a game I play, giving you a 15 second notice. If I manually start this script, it works fine. invalid option say Server is restarting in 15 seconds-ne and it says this for every line in the rest of the script (substituting the correct phrases of course, but always starting at the "say" and ending with the "-ne")

View 9 Replies View Related

Red Hat / Fedora :: Cron Job - Rights To Execute Script

Sep 25, 2009

I cannot debug or resolve on a Fedora Core 8 machine. The problem exists in a Fedora 11 machine as well. I have a script that changes the default gw (I have 2 providers) if the link is down. The script runs very well when I call it from the terminal, however when I try to set a cron job to run it, it hangs in the middle of the script. I don't have any idea of what is happening, or how to debug but it seems to hang when running a command like: route add default gw [ip]

I can publish the script here, but it's fair an simple and the algorithm is:
- start
- Find out the current GW
- Find out the alternative GW
- Ping the current GW and capture the result
- if we have a fail then change the default gw to the alternative Gw and send an email, else do nothing
- end

The cron job is run as root, so I don't think this is a rights problem.

View 1 Replies View Related

Slackware :: How To Create Cron Job To Execute At Same Time Each Day

Nov 11, 2010

I was thinking of creating a little audio alarm clock with an mp3 and mpg123 to play a song from a cron job each day. How do you specify the time of day to execute a cron job?

View 4 Replies View Related

Ubuntu :: Setting Up Cron For The First Time Not Working?

Aug 17, 2010

I've read a lot on how to setup a task in crontab. I think I understand how to edit the file, but when I try to save the changes, it says "no crontab for xxx." Then it says that it cannot create a new crontab. I have ubuntu desktop 9 running as a webserver. I've read the details in these posts and it isn't helping.

[URL]

View 3 Replies View Related

Ubuntu :: BASH: Execute Next Command Until Another Command Succeed?

Mar 19, 2010

I have a big bash script ,its goal is to download movie one by one . But I often get into a problem: if this script is executed in cron,it often does not completely download the movie.I often find the movies it downloaded are several KB while the movie is actually 20MB.So I think it is because it did not wait for finishing one task ,and jump to download another.So I want to know ,is there a way to force the bash script to wait until one movie downloaded completely and then start to download another movie ?

View 8 Replies View Related

Programming :: Effect Of Using Eval To Execute A Command As Opposed To Writing It On The Command-line?

Jun 18, 2010

Code: cmd='date | wc'

$cmd If this script is executed, an error is generated. The reason written was that "The execution fails because the pipe is not expanded and is passed to date as an argument".What is meant by expansion of pipe. When we execute date | wc on the command line, it goes fine.then | is not treated as an argument. Why?

View 4 Replies View Related

Ubuntu :: Error While Setting Emblems With Gvfs-set-attribute And Cron

Aug 26, 2010

I already posted a link in the ubuntuusers.de Forum (german) [URL].. But I haven't found a solution yet. The problem is, that I wanna set an Emblem in Nautilus via a Script that is called by cron. The problem happens in that line

Code:
/usr/bin/gvfs-set-attribute -t stringv /path/to/file metadata::emblems minus14
thats the error: Error setting attribute: Setting attribute metadata::emblems not supported
I already tried to call the script via /etc/crontab and /var/spool/cron/crontabs/meles, i tired it with
Code:
/path/to/script

[Code]...

View 2 Replies View Related

General :: Setting Setuid Without Execute Bit?

Jan 24, 2010

setuid bit allows the process to execute the file with the uid of the file. But, what is the purpose of setting setuid without execute bit? The man page tells that if a file is setuid without execute flag, the permission will be displayed as 'S' (capital s) in ls command. Why should anyone set the setuid without execute flag? Does setting setuid without execute flag have any special meaning?

View 1 Replies View Related

General :: Only Execute 2nd Command On Successufl Execution Of 1st Command?

Aug 19, 2009

I have a script which builds a project and then runs junit tests. However, if the build fails, the junit tests fail with the same error message.Therefore the command which runs the junit tests should only be executed if the build was successful.

View 3 Replies View Related

Ubuntu :: Setting Up A Cron Job Creates A Tunnel To Remote Machine To Work Correctly On 9.10?

Jan 12, 2010

I am having some trouble setting up a cron job that creates a tunnel to my remote machine to work correctly on Ubuntu 9.10. The setup looks like the following:

(1) myscript.sh (executable)
Code:
#!/bin/bash
ssh -2 -x -i /home/user/.ssh/id_rsa.prv -L 3128:myremotemachine:3128 myaccount@myremotemachine
(2) crontab -e, added the following lines:

[Code]...

View 5 Replies View Related

General :: Setting Execute Permissions On Second Hard Drive

Apr 4, 2011

I am running Linux Mint on my primary hard drive, and I would like to access some folders I have on my second hard drive, which has Windows XP installed on it. However, whenever I try to use these folders, I am greeted with the error message, "The file is not marked as executable." While I know how to set files as executable whenever I am using folders on my Linux drive, whenever I try to set such permissions on my XP folders, I can't seem to make it work. The files revert to their former status, and I'm told that I don't have permission. Should I set the files as sharable from within XP, so that they aren't marked as read-only? Or is there another solution I've missed?

View 8 Replies View Related

Ubuntu Networking :: Setting Up A Router ?

Jul 23, 2010

I tried to setup a Ubuntu Wired Router according to the manual but found a problem.

At the end of the doc page it says:

Code:

The problem though is that I don't have a wireless connection and what do I put at the end?

It says "bridge-ports eth1 wlan0" so should I change that to "eth1" twice or just leave "wlan0" out or how do I fix this?

View 9 Replies View Related

Ubuntu :: DDNS Setting In Linkysys Router ?

Jul 24, 2010

I am running a web server with a public ip that is dynamic. I am using ZoneEdit.com and my WRT54GS router to manage my dynamic ip address whenever it changes. It is working as it should.

However, the subdomains ip addresses are not changing. It still shows the old addresses versus the new address. Is it possible to set it where my subdomains address will change as well?

Right now on my router under the ddns menu, I have the host name set to domain.com. Do I need to make a wildcard?

View 2 Replies View Related

Ubuntu Servers :: Setting Up A Static Ip Through Router?

Sep 23, 2010

If not should I just plug up directly into my modem?

View 2 Replies View Related

Ubuntu Networking :: Setting Up PC As Router - Bandwidth Usage

Jan 28, 2010

I wish to setup my spare PC as a router. I was wondering what programs, in ubuntu, I can use to monitor and change settings concerning bandwidth usage. I want to throttle down a computer in my network so what program would be good for this?

View 1 Replies View Related

Ubuntu Networking :: Setting Up Linksys N-Router E1000?

Aug 21, 2010

Okay, a few days ago I got a small job setting up a router for a neighbour of mine. He wanted me to set up a wireless network for him. The router he bought is a Linksys Wireless N-Router E1000. I set it up the passwords and everything. Only to find out that I couldn't connect at all to it. The main computer with a direct ethernet connection to the router was the only one that had internet. Everytime I attempt to connect wirelessly with any device, it will take extremely long time to connect, to the point where I will just quit connecting.(Example: 15 minutes of waiting, when the laptop is right next to the router)

Any ideas about what I am doing wrong here? As far as I can think of it might just be a faulty router, because the router will not implement any changes(like setting a password) I set on it. Only wired connections seem to work. the router is called a linksys wirless N-router E1000.

View 2 Replies View Related

Ubuntu Networking :: Setting Up Droid 2 (router) Ports?

Dec 28, 2010

World of Warcraft requires that TCP Ports 1119, 1120 and 3724 are forwarded. The Blizzard Downloader requires that TCP ports 3724, 1119, 4000, 6112, 6113 and 6114 are forwarded. It can also benefit from having ports 6881 through 6999 forwarded. The World of Warcraft Voice Chat feature uses UDP Port 3724.

i use the hotspot feature to play warcraft and i am running ubuntu 10.10 ... i need to forward these ports ... any way to easily download an app to configure the phone like you would a router? its probably easy i just cant find it.

View 2 Replies View Related

Ubuntu Networking :: Setting Up A Router And Firewall For 10.10 Server 64-bit?

Jan 28, 2011

post the "perfect" tutorial for setting up a router and firewall for Ubuntu 10.10 Server 64-bit? I'm kind of a n00b when it comes to Linux, so I get really confused with some things, I have seen things on the ubuntu wiki about this... but it really confuses me =

I'm trying to setup my ubuntu sys as a router and firewall... Internet -> Ubuntu (Router) -> Switch (no DHCP on it) -> Computers I've already setup bind and dhcp3 and got those working perfectly... I've also setup Squid3 and Dansguardian for content filtering (blocking ads and such) and got them working too... I want to set it all up to be transparent, and allow the system itself to function as a powerful firewall router, giving absolutely NO issues to client computers connected, and no speed reduction at all.... I want to setup the firewall to allow all outgoing connections, but block everything incoming (stealth the network)... Forcing all http/s traffic to pass through dansguardian, then to squid...

But am very confused on how to pull this off... The system is running Ubuntu 10.10 Server 64-bit, with 4 GB of RAM, 320 GB SSD, and two 1Gb NIC cards... Sorry if I'm not very clear, I do speak english perfectly, but just kinda new to the "Linux world", I was using SONICWALL but that's getting a little too costly to my network and wanna do a free alternative... Something completely CUSTOM, not using some network security distro.

View 1 Replies View Related

Ubuntu Networking :: Setting Up 6to4 Router For IPv6?

Feb 8, 2011

I decided to try and get my network ready for IPv6. All of my hosts are set up to do stateful autoconfig, I have radvd installed and working, and I can ping6 ipv6.google.com from my Ubuntu server. However, when one of the clients on the inside tries to ping6, no packets return and I get this message in the router's syslog:

Code:

Feb 8 17:55:17 foo kernel: [ 1344.824474] Dead loop on virtual device tun6to4, fix it urgently!

View 5 Replies View Related

Ubuntu Servers :: Setting Up Gateway / Router And Firewall

Jul 20, 2011

So what I want to do is setup a gateway(or router, idk what Ubuntu refers to it as.). So my set up would be Modem>Server>Switch>Router. I know that I need to set up it up as a DHCP server as well. I would also like to setup it up as a firewall too. I already have two Gbit cards that are already configured. So how do I do this? I already tried one tutorial, but it was old and was for Debian. I also installed ebox, but I couldnt figure that out either.

View 1 Replies View Related

Ubuntu :: Setting Up A Wired Internet Connection Through A Router?

Oct 13, 2010

The problem isn't with thew new computer but with my computer running Ubuntu. The problem is that I'm having trouble getting the Internet to work. Before the router I just plug my PC straight into the modem but now with the router I can't get on the Internet. I can get a connection to the router but no Internet. I know the it is not the router because I use my PS3 and it worked fine. I spend like an hour just trying to get the connection but can't figure out the Internet problem. What I did to get the connection is copy the ip address, Mac, and etc. from the PS3. Then I made a new connection and put the data in the IPV4 settings and it got a connection but I'm not sure if I did that right or just got lucky

View 2 Replies View Related

Networking :: Setting Up A Router In Fedora 10 ?

Jan 27, 2010

Setting up a Linux router in Fedora 10. The router has an IP (192.168.1.1) for the eth0 on the internal LAN and a static registered IP for eth1 on the internet connection. All the internal LAN client PCs have gateway set to 192.168.1.1. My question is what do I set the gateway address to on eth0 and eth1 and how would I configure this in /etc/sysconfig/network?

View 2 Replies View Related

Slackware :: Setting Up Pppoe Over Router ?

Feb 9, 2010

How can I setup pppoe over the router on Slackware current? I have setup a WAP network on the other computer through the easy setup tool that linksys provides, but it can't find the internet connection. I am using a linksys WRT54G router.

View 2 Replies View Related

Ubuntu Networking :: Configure Wireless Setting With Linksys Router?

May 30, 2011

I have a Linksys WAG54G2 Router - this is set up and was working fine with Xp and my Apple I phone.I have just changed over from XP to Ubuntu, and am having difficulty in configuring wireless settings to accept UBUNTU.The hard wired Ethernet connection works fine.

View 2 Replies View Related

Ubuntu :: Cron Command: Runs From CLI, But Not Auto?

Mar 10, 2010

I have a script that is basically a series of rsync commands called bkup_all.sh. This script is located in the /root/ dir.From the command line (su'd as root), I can run the script like this:/root/bkup_all.sh > /var/log/bkup/bkup_$(date +%Y%m%d).logThis excecutes perfectly, and all the rsync adn script output is saved in a log file in the intended destination. However, I want this command to run automatically, so again, su'd as root I enter:crontab -ethen enter the following:00 02 * * * /root/bkup_all.sh > /var/log/bkup/bkup_$(date +%Y%m%d).logI want the script to run each night at 2:00am.But, the script does not run. There is no log file generated and I do not see anything in the syslog or system messages to indicate an error.

View 2 Replies View Related

Fedora :: OT Setting Up A Router To Supply Wireless ?

Jun 11, 2010

I will be staying at a hotel for a couple weeks that has a wired internet connection to each room. I have a Linksys WRT54G v6 wireless router and would take with me and set it up so I would have wireless in my room.

View 2 Replies View Related

OpenSUSE Network :: Setting Host Name On Router

Apr 8, 2010

I am running

Code:

On my laptop (HPDV7), using DHCP for network access, KDE4.

I use Network Manager to manage wired and wireless connectivity.

I also have Samba server running for connectivity to Windows machines.

My router runs DD-WRT.

How do I tell this HPDV7 system to propagate a Host Name up to the router?

In the DD-WRT status screen, I see Host Name as "*" associated with the assigned IP address.

I cannot, for example, ping my HPDV7 machine from my windows machine, I assume because the router (also providing DNS for my network) does not provide the name to address translation.

I CAN ping the IP address directly, and Samba connectivity from the Windows machine to HPDV7 works.

The file

Code:

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved