Re: cron fails to start as a service in Win2k3R2 64bit

2010-08-20 Thread Pierre A. Humblet
- Original Message - 
From: Blaine Miller 
To: cygwin
Sent: Thursday, August 19, 2010 17:47


| The only way I've been able to get cron running is manually by starting 
| the crond via execution of cron.exe.
| 
| Attached are my cygcheck.txt and crontab.
| 
| I get the following error after I install and start the cron service...
| 
| cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1062:


Did you use cron-config to configure cron?

If the problem persists run cronbug and send the output as an attachment.

Pierre


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: cron fails to start as a service in Win2k3R2 64bit

2010-08-20 Thread Blaine Miller

Pierre,

I'm trying it now. No, I didn't know this was the preferred method of 
installing cron as a service. I've been installing/reinstalling 
everything from the cygwin *setup.exe*.


I've looked at the log files and they seem pretty unremarkable. I'll run 
cronbug after I try the cron-config command.


Thanks very much for your time and support...

Blaine

Pierre A. Humblet wrote:
- Original Message - 
From: Blaine Miller 
To: cygwin

Sent: Thursday, August 19, 2010 17:47


| The only way I've been able to get cron running is manually by starting 
| the crond via execution of cron.exe.
| 
| Attached are my cygcheck.txt and crontab.
| 
| I get the following error after I install and start the cron service...
| 
| cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1062:



Did you use cron-config to configure cron?

If the problem persists run cronbug and send the output as an attachment.

Pierre


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple




  


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: cron fails to start as a service in Win2k3R2 64bit

2010-08-20 Thread Blaine Miller

Pierre,

I tried using cron-config and it failed. Please find attached my 
cronbug.txt...


Thanks again for your continued time and assistance.

Blaine

Pierre A. Humblet wrote:
- Original Message - 
From: Blaine Miller 
To: cygwin

Sent: Thursday, August 19, 2010 17:47


| The only way I've been able to get cron running is manually by starting 
| the crond via execution of cron.exe.
| 
| Attached are my cygcheck.txt and crontab.
| 
| I get the following error after I install and start the cron service...
| 
| cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1062:



Did you use cron-config to configure cron?

If the problem persists run cronbug and send the output as an attachment.

Pierre


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple




  

Current version
-rwxr-xr-x 1 Administrator root 5304 2010-02-15 18:14 
/usr/share/doc/Cygwin/cron-4.1-59.README

Running crons:
 2116   12116   2116?  500 13:49:24 /usr/sbin/cron
I366421162116   3664?  500 05:00:01 /usr/sbin/cron
I389621162116   3896?  500 05:00:01 /usr/sbin/cron
I346421162116   3464?  500 06:00:01 /usr/sbin/cron

Sendmail:
lrwxrwxrwx 1 Administrator None 16 2010-08-11 09:48 /usr/sbin/sendmail - 
/usr/bin/cronlog

Crontabs:
-rw-r- 1 Administrator root 599 2010-08-19 14:17 
/var/cron/tabs/Administrator
-rw-r- 1 500 0 599 2010-08-19 14:17 /var/cron/tabs/Administrator

cron.log:
-rw-r--r-- 1 SYSTEM root 2456 2010-08-19 14:42 /var/log/cron.log

cron.pid:
-rw-r--r-- 1 Administrator None 5 2010-08-19 13:49 /var/run/cron.pid

Crontab:
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.yRr11boUdm installed on Thu Aug 19 14:17:23 2010)
# (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $)
00 05 * * * /cygdrive/c/scripts/xfer_vvm_mysql.sh
00 05 * * * /cygdrive/c/scripts/xfer_vvm_ora.sh
00 05 * * * /cygdrive/c/scripts/xfer_nab_vnnab.sh
00 10 * * * /cygdrive/c/scripts/xfer_nab_csnab.sh
00 06 * * * /cygdrive/c/scripts/xfer_dellsrv20.sh
00 06 * * * /cygdrive/c/scripts/xfer_directory.sh
00 06 * * * /cygdrive/c/scripts/xfer_perforce.sh
00 06 * * 2 /cygdrive/c/scripts/xfer_fileserv.sh 

Windows Application Events log:
2010/08/11 09:48:28 [Administrator] crontab: PID 1736: (Administrator) LIST 
(Administrator)
2010/08/13 13:50:48 [Administrator] crontab: PID 1904: (Administrator) LIST 
(Administrator)
2010/08/13 13:59:11 [Administrator] crontab: PID 1900: (Administrator) BEGIN 
EDIT (Administrator)
2010/08/13 14:14:47 [Administrator] crontab: PID 1900: (Administrator) REPLACE 
(Administrator)
2010/08/13 14:14:47 [Administrator] crontab: PID 1900: (Administrator) END EDIT 
(Administrator)
2010/08/13 14:24:51 [Administrator] crontab: PID 680: (Administrator) BEGIN 
EDIT (Administrator)
2010/08/13 14:30:18 [Administrator] crontab: PID 680: (Administrator) REPLACE 
(Administrator)
2010/08/13 14:30:18 [Administrator] crontab: PID 680: (Administrator) END EDIT 
(Administrator)
2010/08/13 14:30:47 [Administrator] crontab: PID 2972: (Administrator) LIST 
(Administrator)
2010/08/13 15:09:48 [Administrator] crontab: PID 1028: (Administrator) LIST 
(Administrator)
2010/08/14 15:13:12 [Administrator] crontab: PID 3916: (Administrator) LIST 
(Administrator)
2010/08/14 15:17:12 [Administrator] crontab: PID 2732: (Administrator) BEGIN 
EDIT (Administrator)
2010/08/14 15:17:31 [Administrator] crontab: PID 2732: (Administrator) REPLACE 
(Administrator)
2010/08/14 15:17:31 [Administrator] crontab: PID 2732: (Administrator) END EDIT 
(Administrator)
2010/08/16 06:16:42 [Administrator] crontab: PID 368: (Administrator) LIST 
(Administrator)
2010/08/16 06:31:33 [Administrator] crontab: PID 3648: (Administrator) LIST 
(Administrator)
2010/08/16 07:43:33 [Administrator] crontab: PID 4008: (Administrator) LIST 
(Administrator)
2010/08/17 08:04:30 [Administrator] crontab: PID 2604: (Administrator) LIST 
(Administrator)
2010/08/17 08:04:51 [Administrator] crontab: PID 2468: (Administrator) BEGIN 
EDIT (Administrator)
2010/08/17 08:05:12 [Administrator] crontab: PID 2468: (Administrator) REPLACE 
(Administrator)
2010/08/17 08:05:12 [Administrator] crontab: PID 2468: (Administrator) END EDIT 
(Administrator)
2010/08/17 08:52:31 [Administrator] crontab: PID 3236: (Administrator) LIST 
(Administrator)
2010/08/17 08:52:40 [Administrator] crontab: PID 640: (Administrator) BEGIN 
EDIT (Administrator)
2010/08/17 08:53:31 [Administrator] crontab: PID 640: (Administrator) REPLACE 
(Administrator)
2010/08/17 08:53:31 [Administrator] crontab: PID 640: (Administrator) END EDIT 
(Administrator)
2010/08/17 08:54:16 [Administrator] crontab: PID 2668: (Administrator) LIST 
(Administrator)
2010/08/17 08:54:52 [Administrator] crontab: PID 3512: (Administrator) BEGIN 
EDIT 

Re: cron fails to start as a service in Win2k3R2 64bit

2010-08-20 Thread Pierre A. Humblet

- Original Message - 
From: Blaine Miller 
To: cygwin
Sent: Friday, August 20, 2010 11:33


| Pierre,
| 
| I tried using cron-config and it failed. Please find attached my 
| cronbug.txt...

OK, I see that you are running cron as yourself (Administrator).

The problem is that you have several cron running, probably from
the time when you were running cron manually
2116 1 2116 2116 ? 500 13:49:24 /usr/sbin/cron

I 3664 2116 2116 3664 ? 500 05:00:01 /usr/sbin/cron

I 3896 2116 2116 3896 ? 500 05:00:01 /usr/sbin/cron

I 3464 2116 2116 3464 ? 500 06:00:01 /usr/sbin/cron

Kill them all and run cron-config again, keeping (not removing) the existing 
service.

Pierre
 

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



cron fails to start as a service in Win2k3R2 64bit

2010-08-19 Thread Blaine Miller
The only way I've been able to get cron running is manually by starting 
the crond via execution of cron.exe.


Attached are my cygcheck.txt and crontab.

I get the following error after I install and start the cron service...

cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1062:

Thanks very much for your time and consideration.

Cygwin Configuration Diagnostics
Current System Time: Thu Aug 19 11:44:38 2010

Windows 2003 Server R2 Ver 5.2 Build 3790 Service Pack 2

Running under WOW64 on AMD64

Running in Terminal Service session

Path:   C:\cygwin\usr\local\bin
C:\cygwin\bin
C:\cygwin\bin
C:\WINDOWS\system32
C:\WINDOWS
C:\WINDOWS\System32\Wbem
C:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\
C:\Program Files (x86)\Microsoft SQL Server\80\Tools\Binn\

Output from C:\cygwin\bin\id.exe
UID: 500(Administrator) GID: 513(None)
513(None)   0(root) 544(Administrators)
545(Users)

SysDir: C:\WINDOWS\system32
WinDir: C:\WINDOWS

USER = 'Administrator'
PWD = '/home/Administrator'
HOME = '/home/Administrator'

HOMEPATH = '\Documents and Settings\Administrator'
MANPATH = '/usr/local/man:/usr/share/man:/usr/man::/usr/ssl/man'
APPDATA = 'C:\Documents and Settings\Administrator\Application Data'
ProgramW6432 = 'C:\Program Files'
HOSTNAME = 'sm-i222'
TERM = 'cygwin'
PROCESSOR_IDENTIFIER = 'EM64T Family 6 Model 26 Stepping 5, GenuineIntel'
WINDIR = 'C:\WINDOWS'
OLDPWD = '/usr/bin'
USERDOMAIN = 'SM-I222'
CommonProgramFiles(x86) = 'C:\Program Files (x86)\Common Files'
OS = 'Windows_NT'
ALLUSERSPROFILE = 'C:\Documents and Settings\All Users'
COMMONPROGRAMFILES = 'C:\Program Files (x86)\Common Files'
USERNAME = 'Administrator'
ClusterLog = 'C:\WINDOWS\Cluster\cluster.log'
PROCESSOR_LEVEL = '6'
ProgramFiles(x86) = 'C:\Program Files (x86)'
FP_NO_HOST_CHECK = 'NO'
SYSTEMDRIVE = 'C:'
PROCESSOR_ARCHITEW6432 = 'AMD64'
LANG = 'C.UTF-8'
USERPROFILE = 'C:\Documents and Settings\Administrator'
CLIENTNAME = 'L-CM-BMILLER3'
PS1 = '\[\e]0;\w\a\]\n\[\e[32m\...@\h \[\e[33m\]\w\[\e[0m\]\n\$ '
LOGONSERVER = '\\SM-I222'
CommonProgramW6432 = 'C:\Program Files\Common Files'
PROCESSOR_ARCHITECTURE = 'x86'
!C: = 'C:\cygwin\bin'
SHLVL = '1'
PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
HOMEDRIVE = 'C:'
PROMPT = '$P$G'
COMSPEC = 'C:\WINDOWS\system32\cmd.exe'
SYSTEMROOT = 'C:\WINDOWS'
PRINTER = 'HP LaserJet 2200 Series PCL'
CVS_RSH = '/bin/ssh'
PROCESSOR_REVISION = '1a05'
INFOPATH = '/usr/local/info:/usr/share/info:/usr/info:'
PROGRAMFILES = 'C:\Program Files (x86)'
NUMBER_OF_PROCESSORS = '8'
SESSIONNAME = 'RDP-Tcp#1'
COMPUTERNAME = 'SM-I222'
_ = '/usr/bin/cygcheck'

HKEY_CURRENT_USER\Software\Cygwin
HKEY_CURRENT_USER\Software\Cygwin\Program Options
HKEY_CURRENT_USER\Software\Cygwin\setup
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\Installations
  (default) = '\??\C:\cygwin'
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\setup
  (default) = 'C:\cygwin'

obcaseinsensitive set to 1

Cygwin installations found in the registry:
  System: Key: c5e39b7a9d22bafb Path: C:\cygwin

a:  fd N/AN/A
c:  hd  NTFS285138Mb   5% CP CS UN PA FC 
d:  hd  NTFS   3812658Mb  47% CP CS UN PA FC Data
e:  fd N/AN/A
g:  cd N/AN/A

C:\cygwin/  system  binary,auto
C:\cygwin\bin/usr/bin   system  binary,auto
C:\cygwin\lib/usr/lib   system  binary,auto
cygdrive prefix  /cygdrive  userbinary,auto

Found: C:\cygwin\bin\awk
Found: C:\cygwin\bin\awk
 - C:\cygwin\bin\gawk.exe
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cp.exe
Found: C:\cygwin\bin\cp.exe
Not Found: cpp (good!)
Found: C:\cygwin\bin\crontab.exe
Found: C:\cygwin\bin\crontab.exe
Found: C:\cygwin\bin\find.exe
Found: C:\cygwin\bin\find.exe
Found: C:\WINDOWS\system32\find.exe
Warning: C:\cygwin\bin\find.exe hides C:\WINDOWS\system32\find.exe
Not Found: gcc
Not Found: gdb
Found: C:\cygwin\bin\grep.exe
Found: C:\cygwin\bin\grep.exe
Found: C:\cygwin\bin\kill.exe
Found: C:\cygwin\bin\kill.exe
Not Found: ld
Found: C:\cygwin\bin\ls.exe
Found: C:\cygwin\bin\ls.exe
Not Found: make
Found: C:\cygwin\bin\mv.exe
Found: C:\cygwin\bin\mv.exe
Not Found: patch
Not Found: perl
Found: C:\cygwin\bin\rm.exe
Found: C:\cygwin\bin\rm.exe
Found: C:\cygwin\bin\sed.exe
Found: C:\cygwin\bin\sed.exe
Found: C:\cygwin\bin\ssh.exe
Found: C:\cygwin\bin\ssh.exe
Found: C:\cygwin\bin\sh.exe
Found: C:\cygwin\bin\sh.exe
Found: C:\cygwin\bin\tar.exe
Found: C:\cygwin\bin\tar.exe
Found: C:\cygwin\bin\test.exe
Found: C:\cygwin\bin\test.exe
Found: C:\cygwin\bin\vi
Found: C:\cygwin\bin\vi
 - C:\cygwin\bin\vim-nox.exe
Found: C:\cygwin\bin\vim
Found: C:\cygwin\bin\vim
 - C:\cygwin\etc\alternatives\vim
 - C:\cygwin\bin\vim-nox.exe

   15k