-
-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ping fails inside cron #46
Comments
@ProfM2 did you ever find a solution? |
Unfortunately no. I ended up removing the ping check for the cron process. |
Well, I needed this feature to work, so after a bit of testing, discovered in my crontab file, /bin was not in the path. After adding that, ping works great. |
Thanks for posting your solution! Just noting that 99% of the time when I have an issue that comes up during cron runs but not when run as the regular user, it comes down to the |
I have Ping setup inside of a command-line script that, when run on the command-line, everything works great. I get valid data.
However, when I place the exact same command inside of a crontab, Ping returns with a 'false', however the rest of the script works perfectly, so I know that everything is running fine.
I'm using the exec() style of calling. Is there a better method to get valid data from within a cron job?
The text was updated successfully, but these errors were encountered: