Problem with cron jobs

2014-08-21 Thread Cary Lewis
I have created a small shell script that acts like a network connectivity watchdog, which checks for a successful ping to the internet, and if it doesn't work, restarts the machine. When I attempt to run it from a cron job, the script exits whenever any of the commands exits with a non zero

Re: Problem with cron jobs

2014-08-21 Thread Andrey Repin
Greetings, Cary Lewis! I have created a small shell script that acts like a network connectivity watchdog, which checks for a successful ping to the internet, and if it doesn't work, restarts the machine. When I attempt to run it from a cron job, the script exits whenever any of the

Re: Problem with cron jobs

2014-08-21 Thread Andrew DeFaria
On 8/21/2014 7:25 AM, Andrey Repin wrote: Greetings, Cary Lewis! I have created a small shell script that acts like a network connectivity watchdog, which checks for a successful ping to the internet, and if it doesn't work, restarts the machine. When I attempt to run it from a cron job,

Re: Problem with cron jobs

2014-08-21 Thread Duncan Roe
On Thu, Aug 21, 2014 at 07:59:29AM -0400, Cary Lewis wrote: I have created a small shell script that acts like a network connectivity watchdog, which checks for a successful ping to the internet, and if it doesn't work, restarts the machine. When I attempt to run it from a cron job, the