April 12, 201511 yr I was trying to set up a program to update the md5s in my array every morning. I thought I did everything right but it didn't run. Can someone give me a pointer as to what might be wrong? See the play by play below. Thanks! I copied the script into the "/etc/cron/daily" folder. It is called cronmd5.sh. I made sure permissions were set as you'll see below. This morning I saw the following 2 lines in my syslog that have never before appeared: Apr 12 04:40:02 Shark sSMTP[15532]: Unable to locate Apr 12 04:40:02 Shark sSMTP[15532]: Cannot open :0 The program did not run. I just did this on the command line, and it ran perfectly: root@Shark:/# cd /etc/cron.daily root@Shark:/etc/cron.daily# cronmd5.sh <noticable delay as the program ran and I observed the output in the syslog> root@Shark:/etc/cron.daily# ls -la total 8 drwxr-xr-x 2 root root 80 Apr 11 23:39 . drwxr-xr-x 45 root root 2480 Apr 11 07:14 .. -rwxrwxrwx 1 root root 52 Apr 11 23:39 cronmd5.sh -rwxr-xr-x 1 root root 129 Oct 10 2013 logrotate root@Shark:/etc/cron.daily# cat cronmd5.sh #!/bin/bash cd /mnt/cache/md5 refmd5.sh|logger root@Shark:/etc/cron.daily# Must be something basic I am missing. Thanks for pointing me in the right direction!
Archived
This topic is now archived and is closed to further replies.