cron 3.0.1-19 will not run shell scripts
John S.
itsphantom02@yahoo.com
Mon Oct 30 23:29:00 GMT 2006
Greetings,
I hope this is an easy one.
Problem:
cron will not run any shell scripts.
Description:
As far as I can tell cron works fine, but cron will
not run any shell scripts. The shell scripts work fine
if invoked from the shell.
$sh /home/phantom/backup_script/daily
building file list ... done
/cygdrive/c/docs
/cygdrive/c/docs/test_doc123.txt
/cygdrive/c/docs/test_doc456.txt
sent 322 bytes received 92 bytes 276.00 bytes/sec
total size is 0 speedup is 0.00
The following cron test works flawlessly.
$crontab -l
SHELL=/bin/bash
HOME=/
PATH=/bin:/usr/sbin:/home
LOGNAME=phantom
* * * * * /usr/bin/date >> /test/test.txt
#00 20 * 12 1-6
/home/phantom/backup_script/daily
However when I place a shell script to start at 20:00
(Or anytime) it does not run. I do not receive any
error messages in windows or cygwin. Below is the
crontab with the shell script I am trying to run.
$crontab -l
SHELL=/bin/bash
HOME=/
PATH=/bin:/usr/sbin:/home
LOGNAME=phantom
# * * * * /usr/bin/date >> /test/test.txt
00 20 * 12 1-6 /home/phantom/backup_script/daily
$cat /home/phantom/backup_script/daily
#!/bin/sh
RSYNC=/bin/rsync
SSH=/bin/ssh
KEY=/home/phantom/.ssh/dsa-key
RUSER=phantom
RHOST=192.168.1.33
LPATH=/cygdrive/c/docs
RPATH=/home/phantom/backup/docs/
$RSYNC -avz -e "$SSH -i $KEY" $LPATH
$RUSER@$RHOST:$RPATH >> /logs/backup.log
Course of action:
To date I have searched all over the web and I have
read the archived the cygwin mailing lists. I have
verified all file permissions.
I have tried to
$chmod
700 /home/phantom/backup_script/daily
this was unsuccessful
I was on irc and someone told me to verify my crontab
enviornment variables and I think they look ok.
Thank you for your time,
Cheers
John S.
____________________________________________________________________________________
Low, Low, Low Rates! Check out Yahoo! Messenger's cheap PC-to-Phone call rates
(http://voice.yahoo.com)
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list