delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/01/28/14:17:11

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <BAY113-DAV15E8CA9406E594994AA65F5340@phx.gbl>
X-Sender: captain_webber AT hotmail DOT com
From: "Mr Webber" <captain_webber AT hotmail DOT com>
To: <cygwin AT cygwin DOT com>
References: <JLEOIPKAFBBMLMEBHGLIOEDCCBAA DOT gabe AT dbcontrols DOT com>
Subject: RE: Cronjobs not running
Date: Mon, 28 Jan 2008 14:16:15 -0500
Message-ID: <23E7722E39D943D4A8AE71F2792B8B90@windows.tecforth.com>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <JLEOIPKAFBBMLMEBHGLIOEDCCBAA.gabe@dbcontrols.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
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

What does your syslog tell you?

-----Original Message-----
From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com] On Behalf Of
Gabe Green
Sent: Monday, January 28, 2008 1:52 PM
To: cygwin AT cygwin DOT com
Subject: Cronjobs not running

$ps -W|grep cron
1412		1384		1600		con	18	Jan 17
/usr/sbin/cron

0 1 * * mon /home/Administrator/monday.sh
0 1 * * tue /home/Administrator/tuesday.sh
0 1 * * wed /home/Administrator/wednesday.sh
0 1 * * thu /home/Administrator/thursday.sh
0 1 * * fri /home/Administrator/friday.sh
0 1 * * sat /home/Administrator/saturday.sh

example contents of monday.sh (755):
#!/bin/sh
rm -rf /cygdrive/M/ # M is a persistent, network mapped drive
cp -Rv /cygdrive/D/IBM /cygdrive/M/
cp -Rv /cygdrive/D/ar /cygdrive/M/

When I login the next morning, there is nothing in M:\

However, if I run these scripts manually, they work just fine.

Any ideas?

Thanks - 
Gabe


--
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/



--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019