cron problem report

2004-03-01 Thread Seiji Tokunaga
Hi,

I have trouble getting my cron to work. I have tried cron_diagnosis.sh
1.3 but I could not find any problems. I also did the suggestion from
the cron_diagnosis.sh output but it does not work. Here is the crontab
-l, cron_diagnose.sh output and the cygcheck -srv output. Hope you can
help me.

% crontab -l
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.3928 installed on Mon Mar  1 15:03:19 2004)
# (Cron version -- $Id: crontab.c,v 1.7 2003/04/15 15:13:41 corinna Exp $)
* * * * * `date`  ${HOME}/foo.log
%

-- output of cron_diganose.sh --
% bin/cron_diagnose.sh
cron_diagnose.sh 1.3

This script did not find any errors in your crontab setup.
If you are still unable to get cron to work, then try
shutting down the cron service, uninstalling it,
reinstalling it, and restarting it.

The following commands will do that:
  $ cygrunsrv --stop cron
  $ cygrunsrv --remove cron
  $ cygrunsrv --install cron -p /usr/sbin/cron -a -D
  $ cygrunsrv --start cron

If the cron service does not start, try deleting the file
/var/run/cron.pid and then repeating the commands above.

If none of this fixes the problem, then report your problem
to [EMAIL PROTECTED]  Please include a copy of your crontab,
('crontab -l') and the output of 'cygcheck -srv  cygcheck.txt'.

PLEASE include the generated files 'cygcheck.txt' *as an attachment*,
and NOT in the body of the mail message.

Cygwin Win95/NT Configuration Diagnostics
Current System Time: Mon Mar 01 15:16:52 2004

Windows XP Professional Ver 5.1 Build 2600 Service Pack 1

Path:   c:\WINDOWS\system32
c:\WINDOWS
c:\WINDOWS\System32\Wbem
C:\cygwin\bin

Output from C:\cygwin\bin\id.exe (nontsec)
UID: 1003(Seiji) GID: 513(None)
513(None)

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

SysDir: C:\WINDOWS\System32
WinDir: C:\WINDOWS

HOME = `C:\cygwin\Home\Seiji'
MAKE_MODE = `unix'
PWD = `/home/Seiji'

ALLUSERSPROFILE = `C:\Documents and Settings\All Users'
APPDATA = `C:\Documents and Settings\Seiji\Application Data'
CLIENTNAME = `Console'
COMMONPROGRAMFILES = `C:\Program Files\Common Files'
COMPUTERNAME = `HEIMINSAMURAI'
COMSPEC = `C:\WINDOWS\system32\cmd.exe'
HOMEDRIVE = `C:'
HOMEPATH = `\Documents and Settings\Seiji'
LOGNAME = `Seiji'
LOGONSERVER = `\\HEIMINSAMURAI'
NUMBER_OF_PROCESSORS = `1'
OLDPWD = `/home/Seiji/bin'
OS = `Windows_NT'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 15 Model 2 Stepping 9, GenuineIntel'
PROCESSOR_LEVEL = `15'
PROCESSOR_REVISION = `0209'
PROGRAMFILES = `C:\Program Files'
SESSIONNAME = `Console'
SHLVL = `1'
SYSTEMDRIVE = `C:'
SYSTEMROOT = `C:\WINDOWS'
TEMP = `c:\DOCUME~1\Seiji\LOCALS~1\Temp'
TERM = `vt100'
TMP = `c:\DOCUME~1\Seiji\LOCALS~1\Temp'
TZ = `EST5EDT4,M4.1.0/2,M10.5.0/2'
USERDOMAIN = `HEIMINSAMURAI'
USERNAME = `Seiji'
USERPROFILE = `C:\Documents and Settings\Seiji'
WINDIR = `C:\WINDOWS'
_ = `/usr/bin/cygcheck'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
  (default) = `/cygdrive'
  cygdrive flags = 0x0022
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
  (default) = `C:\cygwin'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) = `C:\cygwin/bin'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) = `C:\cygwin/lib'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options

c:  hd  NTFS   194466Mb  30% CP CS UN PA FC 
d:  cd   N/AN/A
e:  cd   N/AN/A
f:  hd  NTFS   194474Mb  72% CP CS UN PA FC Max200G-2
h:  fd   N/AN/A

C:\cygwin  /  system  binmode
C:\cygwin/bin  /usr/bin   system  binmode
C:\cygwin/lib  /usr/lib   system  binmode
.  /cygdrive  system  binmode,cygdrive

Found: C:\cygwin\bin\awk.exe
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cp.exe
Found: C:\cygwin\bin\cpp.exe
Found: C:\cygwin\bin\find.exe
Found: C:\cygwin\bin\gcc.exe
Not Found: gdb
Found: C:\cygwin\bin\grep.exe
Found: C:\cygwin\bin\ld.exe
Found: C:\cygwin\bin\ls.exe
Found: C:\cygwin\bin\make.exe
Found: C:\cygwin\bin\mv.exe
Found: C:\cygwin\bin\rm.exe
Found: C:\cygwin\bin\sed.exe
Found: C:\cygwin\bin\sh.exe
Found: C:\cygwin\bin\tar.exe

   61k 2003/08/09 C:\cygwin\bin\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0
  cygbz2-1.dll v0.0 ts=2003/8/9 2:35
7k 2003/10/19 C:\cygwin\bin\cygcrypt-0.dll - 

RE: cron problem report

2004-03-01 Thread Harig, Mark
Please try version 1.4.  It has additional checks.

http://sources.redhat.com/ml/cygwin/2004-02/msg01341.html

 -Original Message-
 From: Seiji Tokunaga [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 01, 2004 3:27 PM
 To: [EMAIL PROTECTED]
 Subject: cron problem report
 
 
 Hi,
 
 I have trouble getting my cron to work. I have tried cron_diagnosis.sh
 1.3 but I could not find any problems. I also did the suggestion from
 the cron_diagnosis.sh output but it does not work. Here is the crontab
 -l, cron_diagnose.sh output and the cygcheck -srv output. Hope you can
 help me.
 
 % crontab -l
 # DO NOT EDIT THIS FILE - edit the master and reinstall.
 # (/tmp/crontab.3928 installed on Mon Mar  1 15:03:19 2004)
 # (Cron version -- $Id: crontab.c,v 1.7 2003/04/15 15:13:41 
 corinna Exp $)
 * * * * * `date`  ${HOME}/foo.log
 %
 
 -- output of cron_diganose.sh --
 % bin/cron_diagnose.sh
 cron_diagnose.sh 1.3
 
 This script did not find any errors in your crontab setup.
 If you are still unable to get cron to work, then try
 shutting down the cron service, uninstalling it,
 reinstalling it, and restarting it.
 
 The following commands will do that:
   $ cygrunsrv --stop cron
   $ cygrunsrv --remove cron
   $ cygrunsrv --install cron -p /usr/sbin/cron -a -D
   $ cygrunsrv --start cron
 
 If the cron service does not start, try deleting the file
 /var/run/cron.pid and then repeating the commands above.
 
 If none of this fixes the problem, then report your problem
 to [EMAIL PROTECTED]  Please include a copy of your crontab,
 ('crontab -l') and the output of 'cygcheck -srv  cygcheck.txt'.
 
 PLEASE include the generated files 'cygcheck.txt' *as an attachment*,
 and NOT in the body of the mail message.
 

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



RE: cron problem report

2004-03-01 Thread Harig, Mark
 
 % crontab -l
 # DO NOT EDIT THIS FILE - edit the master and reinstall.
 # (/tmp/crontab.3928 installed on Mon Mar  1 15:03:19 2004)
 # (Cron version -- $Id: crontab.c,v 1.7 2003/04/15 15:13:41 
 corinna Exp $)
 * * * * * `date`  ${HOME}/foo.log
 %

Do not include backquotes on 'date' -- you
are instructing cron to execute the date
string.  Simply use:

   * * * * * date  /usr/tmp/date.txt

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



Re: cron problem report

2004-03-01 Thread Thorsten Kampe
* Seiji Tokunaga (2004-03-01 21:27 +0100)
 I have trouble getting my cron to work.

Please consider explaining what you mean by this otherwise any answer
to your report won't satisfy you.

 % crontab -l
 # DO NOT EDIT THIS FILE - edit the master and reinstall.
 # (/tmp/crontab.3928 installed on Mon Mar  1 15:03:19 2004)
 # (Cron version -- $Id: crontab.c,v 1.7 2003/04/15 15:13:41 corinna Exp $)
 * * * * * `date`  ${HOME}/foo.log

This script (`date`  ${HOME}/foo.log) doesn't even work in a plain
shell so for sure not in cron. Read /var/cron/log, the system and
application entries in the eventviewer and the mail that cron probably
sent you in ~/dead.letter.

Hint: use executables with full path in crontab or set PATH in
crontab. Don't take for granted that the normal environment variables
are set ($HOME) and consider reading the man page of crontab.

Thorsten


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