Conversation:
Notices
-
Jeff Ratliff (gomerx)'s status on Tuesday, 06-Oct-2015 13:29:08 EDT Jeff Ratliff
Is it a BASH script? I've had that problem occasionally where commands work differently from inside a cron job. -
Jeff Ratliff (gomerx)'s status on Tuesday, 06-Oct-2015 15:15:24 EDT Jeff Ratliff
If you search for "script doesn't work in crontab" there are some good hits. Often the environment variables need explicitly set. -
Jeff Ratliff (gomerx)'s status on Tuesday, 06-Oct-2015 15:16:15 EDT Jeff Ratliff
I assume you know that you should use full paths to call any executable, but it's worth mentioning. -
Jeff Ratliff (gomerx)'s status on Tuesday, 06-Oct-2015 15:17:54 EDT Jeff Ratliff
Once I just rewrote a script to use 'find | xargs' rather than 'find -exec' and it worked. No idea why.
-