View Single Post
Old 19-01-2008, 10:03 AM   #6 (permalink)
gary4gar
GaurishSharma.com
 
gary4gar's Avatar
 
Join Date: May 2005
Location: Jaipur
Posts: 4,116
Red face Re: Finding & fixing problem with cron

here is the output of today morning, now today morning:

1) today only the router reboot script ran & other :s

Quote:
From: Cron Daemon <root@moody-machine>
To: gaurish@moody-machine
Subject: Cron <gaurish@MOODY-MACHINE> cd /home/gaurish/scripts && sh router-reboot.sh | telnet
Date: Sat, 19 Jan 2008 02:10:05 +0530


telnet> Trying 192.168.1.1...
Connected to 192.168.1.1.
Escape character is '^]'.

BusyBox on localhost login: root
Password:


BusyBox v0.61.pre (2006.06.30-13:40+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

# reboot
Connection closed by foreign host.
wonder why the other commands didn't run

Quote:
1. check if ur DNS entries are up and running. Add opendns entries if u wish.
i am using opendns+Dnsmasq
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:
2. Check ur gateway entry.
how to check?

Quote:
It cud also be ur ISP => down for maintenence!
how come, got two days at a stretch, btw BSNL in good in terms of Uptime


Quote:
1) Remote server is down
2) Problem with your ISP's DNS.
maybe, but how can you explain, tasks run run by cron & no mail left behind?


the password settings is on the based of Shocking Nonsense as Described in FAQ of PGP - Passphrase

Quote:
Originally Posted by mehulved View Post
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.


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
gary4gar is offline