X-Spam-Check-By: sourceware.org Message-ID: <44C51ED9.3060803@cygwin.com> Date: Mon, 24 Jul 2006 15:26:17 -0400 From: "Larry Hall (Cygwin)" Reply-To: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20060112 Fedora/1.5-1.fc4.remi Thunderbird/1.5 Mnenhy/0.7.4.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Running cron as a user other than system References: <001801c6af54$da4f94c0$d81416ac AT basis DOT com> In-Reply-To: <001801c6af54$da4f94c0$d81416ac@basis.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 Earl Box wrote: > I am trying to run a build script via crontab and am dying > because crontab is run as system and one of the commands > in my scripts requires that I run as a specific user. > > I've tried many things > > cygrunsrv -I cron -p /usr/sbin/cron -a -D -u SCROOGE2\\builder > - - - - - - - - - - - - - - - - - - - - - - > builder > > I'm getting this error and can't get past it. > > cygrunsrv: Error starting a service: QueryServiceStatus: > Win32 error 1062: The service has not been started. > > I have just recently install cygwin as I am moving away from > MKS Toolkit. > SHELL = 'C:/PROGRA~1/MKSTOO~1/mksnt/sh.exe' > TERMCAP = 'C:\PROGRA~1\MKSTOO~1\etc\termcap' Correct these environment variables. Make sure nothing sees MKS anymore. > 1831k 2006/07/01 C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0 > "cygwin1.dll" v0.0 ts=2006/7/1 0:22 > Cygwin DLL version info: > DLL version: 1.5.20 > DLL epoch: 19 > DLL bad signal mask: 19005 > DLL old termios: 5 > DLL malloc env: 28 > API major: 0 > API minor: 156 > Shared data: 4 > DLL identifier: cygwin1 > Mount registry: 2 > Cygnus registry name: Cygnus Solutions > Cygwin registry name: Cygwin > Program options name: Program Options > Cygwin mount registry name: mounts v2 > Cygdrive flags: cygdrive flags > Cygdrive prefix: cygdrive prefix > Cygdrive default prefix: > Build date: Sat Jul 1 02:22:36 EDT 2006 > Shared id: cygwin1S4 > > 1163k 2006/03/14 \bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0 > "cygwin1.dll" v0.0 ts=2005/4/25 18:26 > Cygwin DLL version info: > DLL version: 1.5.16 > DLL epoch: 19 > DLL bad signal mask: 19005 > DLL old termios: 5 > DLL malloc env: 28 > API major: 0 > API minor: 128 > Shared data: 4 > DLL identifier: cygwin1 > Mount registry: 2 > Cygnus registry name: Cygnus Solutions > Cygwin registry name: Cygwin > Program options name: Program Options > Cygwin mount registry name: mounts v2 > Cygdrive flags: cygdrive flags > Cygdrive prefix: cygdrive prefix > Cygdrive default prefix: > Build date: Mon Apr 25 20:26:35 EDT 2005 > Shared id: cygwin1S4 > > Warning: There are multiple cygwin1.dlls on your path Ugh! Get rid of the old cygwin1.dll and try again. I'd also recommend updating to 1.5.21. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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/