View Single Post
  #3  
Old 14th October 2012, 20:33
frosty frosty is offline
Junior Member
 
Join Date: Oct 2012
Location: United Kingdom
Posts: 7
Thanks: 7
Thanked 0 Times in 0 Posts
Default Full path to a shell script

Thank you for your answer, falko.

I've tried:

MAILTO=my_email_address@abc.com
30 * * * * sh /usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/opt/dell/srvadmin/bin/my_shell_script

and

MAILTO=my_email_address@abc.com
30 * * * * sh /usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/opt/dell/srvadmin/bin/.my_shell_script

(just playing with keeping/not keeping dot in front of the shell script name at the end of the path)

both instances - no joy: the same

"sh: /usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/opt/dell/srvadmin/bin/backup/democronjobs/my_shell_script: No such file or directory"

and

"sh: /usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/opt/dell/srvadmin/bin/backup/democronjobs/.my_shell_script: No such file or directory"

error messages in my mailbox.

Cheers,

Alex
Reply With Quote