This is the mail archive of the cygwin mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
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, 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. -- WBR, Andrey Repin (anrdaemon@yandex.ru) 21.08.2014, <18:24> Sorry for my terrible english...
$ man bash | grep abortControl-G will abort an incremental search and restore the original
abort (C-g) It might be better if your searched for "errexit". -- Andrew DeFaria http://defaria.com -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |