This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

rsync can run in command line but not in cron

 I just installed lastest cygwin on windows xp service pack 1.

I enabled cron in cygwin, the crontab looks like this,

# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.3548 installed on Wed Oct 4 19:11:00 2006)
# (Cron version -- $Id: crontab.c,v 1.8 2004/12/21 16:14:41 corinna Exp $)
12 19 * * * /usr/bin/rsync -azvv /cygdrive/u/ /cygdrive/c/bin/swtools > /tmp/swtools.cron 2>&1

But it does not work, I check the log file, it is like this,

building file list ...
rsync: link_stat "/cygdrive/u/." failed: No such file or directory (2)

It looks like it can not work with path like /cygdrive/u, this is a network drive.

The problem is I can run the exact command in command line.

Do you know why cron make difference on the path?

Express yourself - download free Windows Live Messenger themes!

-- Unsubscribe info: Problem reports: Documentation: FAQ:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]