[cron] pingtest script works from the shell, but not when called via cron
I wanted to use the pingtest script BennTech created and published in this thread and I ran into some strange issues.
When I execute the script from a shell by hand it's working fine and the logfile shows "Ping 184.108.40.206 OK." but when I'm using cron to call the script, all pings fail instantly and it executes the interface reset and restarts the router afterwards.
I didn't modify the script except for the user variables $ALLDEST and $BOUNCE and set up cron like it says in the topic:
*/5 * * * * root /usr/local/bin/pingtest.sh
Thanks for any advise!
marcelloc last edited by
Try to Edit your script and include full path to all binaries your script call
Thank you very much! That was the problem indeed :)