| Forum |
|
|||||||
| Open Source A place where you can talk to like-minded people about the fastest growing software movement today! Discuss anything and everything about Open Source software and Operating Systems. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) | |||
|
GaurishSharma.com
Join Date: May 2005
Location: Jaipur
Posts: 4,097
|
my crontab looks like Code:
# m h dom mon dow command 10 2 * * * 10 2 * * * DISPLAY=:0.0 /opt/azureus/azureus 13 2 * * * wget -ci /home/gaurish/dl-list.txt Code:
10 2 * * * /usr/bin/pon dsl-provider 49 7 * * * /usr/bin/poff 50 7 * * * /sbin/shutdown -h 0 Quote:
i think its done successfully Quote:
the contents of dl-list.txt file Quote:
the surprizeing part here is 1) cron started wget but for some reason downloads didn't start 2) azureus didn't come up & cron didn't even leave a mail behind stating what error I am not sure whats wrong here, but the the reasons may be 1) network is was not up when wget was running. 2) some error in crontab config 3) cron deamon died 4) some unforeseen error happened the script i use to reboot my router is Code:
#!/bin/sh ############################################# #Script Written By Gaurish Sharma # #change the password variable with your own set password # #the default password in most cased is 'admin' # #use it in terminal as sh router-reboot.sh | telnet # #(C) Gaurish Sharma 2008 # #All Right Reserved # ############################################# add='open 192.168.1.1' userid='root' password='eatmypissyoublackslut' cmd='reboot' echo $add sleep 1 echo $userid sleep 1 echo $password sleep 1 echo $cmd sleep 1 Last edited by gary4gar; 02-10-2008 at 10:05 PM. |
|||
|
|
| Advertisements. Register and be a member of the community to get rid of them. | |
|
Advertisement
|
|
|
|
#2 (permalink) |
|
18 Till I Die............
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
|
As to the downloads surely it's network that's down because as the error states, it cannot find route to the host.
Also, check /var/log/messages to see if anything useful is there.
__________________
http://www.bash.org/?258908 |
|
|
|
|
#3 (permalink) | |
|
Wire muncher!
Join Date: Nov 2003
Posts: 6,164
|
Quote:
1) Remote server is down 2) Problem with your ISP's DNS. Btw, shouldn't the password='eatmypissyoublackslut' be password='drinkmypissyoublackslut'
__________________
"The true measure of a man is how he treats someone who can do him absolutely no good." http://phoenix-ani.blogspot.com |
|
|
|
|
|
#5 (permalink) |
|
String Phreak
Join Date: Mar 2005
Location: In ur Evil Mind!
Posts: 2,453
|
1. check if ur DNS entries are up and running. Add opendns entries if u wish.
2. Check ur gateway entry. 3. It cud also be ur ISP => down for maintenence!
__________________
Bad Bad server.....No candy for u! |
|
|
|
|
#6 (permalink) | ||||||
|
GaurishSharma.com
Join Date: May 2005
Location: Jaipur
Posts: 4,097
|
here is the output of today morning, now today morning:
1) today only the router reboot script ran & other :s Quote:
Quote:
Code:
:~$ cat /etc/resolv.conf # generated by NetworkManager, do not edit! nameserver 127.0.0.1 nameserver 208.67.220.220 nameserver 208.67.222.222 Quote:
Quote:
Quote:
the password settings is on the based of Shocking Nonsense as Described in FAQ of PGP - Passphrase Quote:
as my machine was restarted, so there are no logs at that time of incident Last edited by gary4gar; 19-01-2008 at 10:03 AM. Reason: Automerged Doublepost |
||||||
|
|
|
|
#7 (permalink) |
|
String Phreak
Join Date: Mar 2005
Location: In ur Evil Mind!
Posts: 2,453
|
1. Try removing this line from resolv => "nameserver 127.0.0.1".
2. U check ur gateway with "/sbin/route -nee"! The gateway should be ur router. Does the ping work to any of the opendns's IPs?
__________________
Bad Bad server.....No candy for u! |
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Cron | The Unknown | Open Source | 6 | 17-12-2007 07:18 AM |
| Problem in finding AV tool | Kerry | Software Q&A | 2 | 30-09-2007 05:18 PM |
| How do I start a task through terminal using cron? | unni | Open Source | 5 | 18-03-2007 07:41 PM |
| Cron Jobs | desertwind | Open Source | 5 | 05-10-2005 11:32 AM |