View Single Post
  #14  
Old 19th April 2013, 19:47
aFoP aFoP is offline
Junior Member
 
Join Date: Jun 2012
Location: Budapest
Posts: 7
Thanks: 1
Thanked 1 Time in 1 Post
Default

Hi,
I would not specify /bin/sh in the cron job itself ...

What about
Quote:
57 * * * * /opt/dell/srvadmin/bin/backup/democronjobs/my_shell_script
If in the script itself you specify #!/bin/bash or #!/bin/sh it should run (as root) without problems.
Or did you try to add below 2 lines into the crontab before the above line?

Quote:
SHELL=/bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin

Last edited by aFoP; 19th April 2013 at 20:32.
Reply With Quote