This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: cron results in COLD BOOT


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@rfk.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]