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 X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Subject: crontab -u Date: Thu, 6 Feb 2003 15:14:14 -0500 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "House, Mark" To: X-OriginalArrivalTime: 06 Feb 2003 20:14:15.0006 (UTC) FILETIME=[5201EFE0:01C2CE1C] Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id h16KEnB17425 Hi, I have cron running successfully on my Win2000 server. I use it to run = a job every 10 minutes. In the job, I specify that if an error is = found, e-mail the admin and then change the crontab file to no longer = run the job. To do this, I am trying to use the command "crontab -u = Administrator stop_extract". Stop_extract is a text file with the = crontab details that I want to load. Administrator is the user that I = want to change the crontab file for. When I use cygwin I am automatically logged in as Administrator in = bash. At the command line I have used "crontab start_extract" to set = the crontab file and I have used "crontab stop_extract" to set the = crontab file. I confirm that both of those commands are valid and the = system behaves properly when each of those files is loaded into crontab. When I put my code together, I initially used "crontab stop_extract" to = alter the crontab in case of an error. However, crontab runs as SYSTEM. = It would not undo the crontab file for the Administrator, so, I tired to = use the -u function. When I use the -u parameter, I get a message saying = "must be privileged to use -u". Does anyone know how to get -u to work? Or does anyone have a = suggestion for another method I can use to systematically unset crontab? Thanks, Mar -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/