An excellent suggestion.
Another way to accomplish much the same thing is to set the path in the crontab entry itself. You can add a line like the following:
somewhere near the beginning of the crontab entry to explicitly set the path for the processes that cron runs.PATH=/bin:/usr/bin:/usr/local/bin:/path/to/mysql/bin
In reply to Re^2: System call from cron Perl script
by duff
in thread System call from cron Perl script
by ralphch
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |