delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/01/28/13:53:04

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
From: "Gabe Green" <gabe AT dbcontrols DOT com>
To: <cygwin AT cygwin DOT com>
Subject: Cronjobs not running
Date: Mon, 28 Jan 2008 11:51:43 -0700
Message-ID: <JLEOIPKAFBBMLMEBHGLIOEDCCBAA.gabe@dbcontrols.com>
MIME-Version: 1.0
X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

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

- Raw text -


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