| delorie.com/archives/browse.cgi | search |
| X-Spam-Check-By: | sourceware.org |
| Message-ID: | <20061030220334.78774.qmail@web58414.mail.re3.yahoo.com> |
| Date: | Mon, 30 Oct 2006 14:03:34 -0800 (PST) |
| From: | "John S." <itsphantom02 AT yahoo DOT com> |
| Subject: | cron 3.0.1-19 will not run shell scripts |
| To: | cygwin AT cygwin DOT com |
| MIME-Version: | 1.0 |
| X-IsSubscribed: | yes |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| Note-from-DJ: | This may be spam |
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |