Problem with cron jobs

Andrey Repin
Thu Aug 21 14:35:00 GMT 2014

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 commands exits with a non zero status, preventing the
> script from doing its job.

> Has anyone seen this behaviour before?

> I have tried wrapping the script in () to run it within a sub-shell,
> but to no avail.

man bash
You have to disable abort-on-error in your script.

Andrey Repin ( 21.08.2014, <18:24>

Sorry for my terrible english...

Problem reports:
Unsubscribe info:

More information about the Cygwin mailing list