cron is not workin well running a custom script on Slackware 10.1...
cron is not workin well running a custom script on Slackware 10.1...
Hi, I tried scheduling this crontab as a roor or as a user called 'cuser' this is the crontab (without quotes): '27 15 * * * /home/cuser/custom-scripts/cron-backups.sh>/dev/null 2>&1' Of course, the shell script has 775 permisions, weirdo thing is that the command can be runned ok from the standar shell, but under cron it just doesnt run... do you think it could be due the use of YYYY-MM-DD_HHMM input switches on the 'rar' program or the '-mtime +365' argument used in find command passed to the cron-backups.sh script? This is the 'cron-backups.sh' shell script: Code:
#!/bin/sh |
"weirdo thing is that the command can be runned ok from the standar shell, but under cron it just doesnt run"
cron has a much shorter PATH than root or user. Try using the full pathname for each of the commands that you execute. --------------------- Steve Stites |
I call the shell script for cron using the full path: '/home/cuser/custom-scripts/cron-backups.sh'
i will try... bue i will try using full paths in the shell script too... i will post results here |
It works now!
I just added the full path for each command used in the script... thanks jailbait!! |
All times are GMT -5. The time now is 05:11 PM. |