X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Thorsten Kampe Subject: Re: rsync can run in command line but not in cron Date: Thu, 5 Oct 2006 17:40:36 +0100 Lines: 34 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit User-Agent: MicroPlanet-Gravity/2.70.2067 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com * lin q (Wed, 04 Oct 2006 19:38:12 -0600) > 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 $) > USER=toma > USERNAME=toma > HOME=/cygdrive/c/home/toma > HOMEDRIVE=C: > UID=toma > 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) > done > > 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? Cron is running under the LocalSystem account that hasn't any rights on network shares. Same goes for the Schedule service (at.exe). Thorsten -- 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/