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]
Other format: [Raw text]

Cron v3.0.1-5 setup issue w/ Cygwin v1.3.6


Hey Cron Experts,

I using Cygwin version:
CYGWIN_NT-5.0 PVLCRAIGR 1.3.6(0.47/3/2) 2001-12-08 17:02 i686 unknown and 
I'm trying to get Cron running on 3 machines, WinNT w/ SP6 and Win2K, but 
having pretty much the same problem on all.  Cron runs, but fails to launch 
the crontab processes.  Looks like a configuration issue, but with what?


I can get the service running just fine by using the following:

   cygrunsrv -I cron -d "Cygwin CRON" -p /usr/sbin/cron -a '-D' cygrunsrv -S 
cron

      or

   cygrunsrv -I "Cygwin cron" -p /usr/sbin/cron -a '-D' -e "CYGWIN=ntsec" 
cygrunsrv --start "Cygwin cron"

   NOTE: I've also tried the "-p" option with the full pathname to 
C:/PerVigil/usr/sbin/cron


Used a simple crontab -e to add:

   * * * * * /usr/bin/date > $HOME/date.log
   * * * * * echo "Hello from CRON" > /tmp/echo.log


But always receive the following messages in the event viewer:

1.   The description for Event ID ( 0 ) in Source ( /usr/sbin/cron )could 
not be found. It contains the following insertion string(s): /usr/sbin/cron 
: Win32 Process Id = 0xB1 : Cygwin Process Id = 0xB1 :(trendadm) CMD 
(/usr/bin/date > $HOME/date.log).

2.   The description for Event ID ( 0 ) in Source ( /usr/sbin/cron )could 
not be found. It contains the following insertion string(s): /usr/sbin/cron 
: Win32 Process Id = 0xFA : Cygwin Process Id = 0xFA :
(trendadm) CMD (echo "Hello from CRON").

3.   The description for Event ID ( 0 ) in Source ( sSMTP mail )could not be 
found. It contains the following insertion string(s): sSMTP mail : Win32 
Process Id = 0x1AA : Cygwin Process Id = 0x168 : No ssmtp.conf in 
/etc/ssmtp.

(Now granted, I havenít enabled the mail server yet.)

4.   The description for Event ID ( 0 ) in Source ( sSMTP mail )could not be 
found. It contains the following insertion string(s): sSMTP mail : Win32 
Process Id = 0x1AA : Cygwin Process Id = 0x168 : unable to locate host 
mailhost..

5.   The description for Event ID ( 0 ) in Source ( sSMTP mail )could not be 
found. It contains the following insertion string(s):sSMTP mail : Win32 
Process Id = 0x1AA : Cygwin Process Id = 0x168 : can't open the smtp port 
(0) on mailhost..

6.   The description for Event ID ( 0 ) in Source ( /usr/sbin/cron )could 
not be found. It contains the following insertion string(s): /usr/sbin/cron 
: Win32 Process Id = 0x1B1 : Cygwin Process Id = 0x1B1 :
(trendadm) MAIL (mailed 16 bytes of output but got status 0xffffffff).


I've been thru the web site and tried to read all the threads and docs, but 
I'm completely stumped.

I know it's not an issue with finding /usr/sbin/cron.  The commands by 
themselves run fine in Bash, however my path is:

PATH=/usr/local/bin:/usr/bin:/bin:/cygdrive/c/WINNT/system32:/cygdrive/c/WINNT:/cygdrive/c/WINNT/System32/Wbem:/cygdrive/c/Winnt/Commands:/cygdrive/c/Program 
Files/Sybase/Sybase 
Central/win32:/cygdrive/c/trend/sybase_11.9.2/ASEP:/cygdrive/c/trend/sybase_11.9.2/DLL:/cygdrive/c/trend/sybase_11.9.2/BIN:.:/cygdrive/c/TREND/TREND_4.0/bin:/usr/bin:/usr/sbin:.:/cygdrive/c/Appls/SecureCRT 
3.0


My startup cygwin.bat is:

@echo off
C:
chdir \TREND\TREND_4.0\PerVigil\bin
bash --login -i


/etc/passwd consists of:

Everyone:*:0:0:,S-1-1-0::
SYSTEM:*:18:18:,S-1-5-18::
Administrators:*:544:544:,S-1-5-32-544::
Administrator:unused_by_nt/2000/xp:500:513:U-PVLDELL22\Administrator,S-1-5-21-15877441-981
097223-622671684-500:/home/Administrator:/bin/bash
Guest:unused_by_nt/2000/xp:501:513:U-PVLDELL22\Guest,S-1-5-21-15877441-981097223-622671684-501:/home/Guest:/bin/bash
trendadm:unused_by_nt/2000/xp:1001:513:trendadm,U-PVLDELL22\trendadm,S-1-5-21-15877441-981
097223-622671684-1001:/home/trendadm:/bin/bash

/etc/group consist of:
Everyone:S-1-1-0:0:
SYSTEM:S-1-5-18:18:
None:S-1-5-21-15877441-981097223-622671684-513:513:
Administrators:S-1-5-32-544:544:
Backup Operators:S-1-5-32-551:551:
Guests:S-1-5-32-546:546:
Power Users:S-1-5-32-547:547:
Replicator:S-1-5-32-552:552:
Users:S-1-5-32-545:545:


Any ideas or suggestions.  Thanks very much.

- - -CraigRees
PerVigil, Inc.
972-238-5885
craig.rees@pervigil.com


_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
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]