| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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 |
| X-MimeOLE: | Produced By Microsoft Exchange V6.0.5762.3 |
| content-class: | urn:content-classes:message |
| MIME-Version: | 1.0 |
| Subject: | crontab -u |
| Date: | Thu, 6 Feb 2003 15:14:14 -0500 |
| Message-ID: | <F3ACC29F37410A41AD2B4F090F004E4261EE63@ccdse01.CCD.MSLROOT.NET> |
| X-MS-Has-Attach: | |
| X-MS-TNEF-Correlator: | |
| From: | "House, Mark" <Mark DOT House AT MSL DOT com> |
| To: | <cygwin AT cygwin DOT com> |
| X-OriginalArrivalTime: | 06 Feb 2003 20:14:15.0006 (UTC) FILETIME=[5201EFE0:01C2CE1C] |
| 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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |