Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-Id: <4.3.1.2.20010905130652.01711fa8@pop.ma.ultranet.com> X-Sender: lhall AT pop DOT ma DOT ultranet DOT com X-Mailer: QUALCOMM Windows Eudora Version 4.3.1 Date: Wed, 05 Sep 2001 13:09:47 -0400 To: "Soukup, Kevin (IL50)" , "'cygwin AT cygwin DOT com'" From: "Larry Hall (RFK Partners, Inc)" Subject: Re: cron results in COLD BOOT In-Reply-To: <08E2C05AC33DD4119DD6009027D3B3E9017DBB06@il50scp01.micro.h oneywell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 01:03 PM 9/5/2001, Soukup, Kevin (IL50) wrote: >Greetings All, > >I have to COLD BOOT my NT workstation whenever cron executes by shell >script. > >I've checked the FAQ, the user guides and the documentation and I've >searched the mail archive relentlessly. I've tried variations of the scripts >and configurations of cron with no luck. I hope I've satisfied the >expectation that try to figure this out on my own. > >I am stumped. > >I'm running CygWin on an NT 4.0 sp5 Intel workstation. I've installed the >cron service as follows: > >cygrunsrv -I cron -p /usr/sbin/cron.exe -a -D -e "CYGWIN=tty ntsec" > >The cron job is installed as follows: >30 10 * * * /home/kdsoukup/cadlib_admin/crontest/bart_nightly >> >/home/kdsoukup/cadlib_admin/crontest/bart_nightly.log > >The cron service runs. Cron starts my script as desired. When I run the cron >command line on a bash command line, it executes everything great. When cron >attempts to start the same job, it gets through most of the script but locks >up just about everything up on my workstation. The command set never >completes and the only way out of it is to COLD BOOT the workstation. There >are a total of about 4 sh.exe processes running by the time I have to >reboot. > >Any suggestions would be greatly appreciated. If you'd like to see the >script I'm executing (calls executables, cat, sed, awk, blah, blah, blah) >please reply directly and I'll provide it to you. > >Thanks much and best regards, > > >Kevin Soukup Sensing and Control >CAD/CAM Engineer 11 W. Spring St >Oracle DBA Freeport, IL 61032 > (815) 235-6944 Office > (815) 235-5959 Fax Typically, the cron cases where "it works fine if I run it myself but doesn't through cron" signals a difference in environment. Have you checked this? Cron, at least as "delivered", does not run things as the user you use interactively. Check the README documentation for more details if you haven't already. Larry Hall lhall AT rfk DOT com RFK Partners, Inc. http://www.rfk.com 118 Washington Street (508) 893-9779 - RFK Office Holliston, MA 01746 (508) 893-9889 - FAX -- 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/