This is the mail archive of the
mailing list for the Cygwin project.
RE: Problems with cron
- From: "Harig, Mark" <maharig at idirect dot net>
- To: "Jarrod Hermer" <jarrod at mybeat dot net>,<cygwin at cygwin dot com>
- Date: Thu, 26 Jun 2003 17:11:54 -0400
- Subject: RE: Problems with cron
About your crontab file:
* * * * root echo "Hello World!"
1. 'root' is not a valid value for the fifth field,
which should be the day of the week. Possible
values: '*', 0-7 (Sunday is 0 or 7), or use names
of days. More details can be read in the manual
page for crontab. Enter 'man 5 crontab' at the
2. Redirect the output of 'echo' to a file. Output
that is not sent to a file is sent by email to
the user. This is likely not configured properly
yet on your machine and so the "Hello World!"
string is simply lost. Try:
* * * * * echo "hello world" > /tmp/hello.txt
* * * * * /usr/bin/date > /tmp/date.txt
or, to get a list of the environment that your
crontab knows about:
* * * * * /usr/bin/env > /tmp/env.txt
> -----Original Message-----
> From: Jarrod Hermer [mailto:email@example.com]
> Sent: Thursday, June 26, 2003 11:37 AM
> To: firstname.lastname@example.org
> Subject: Problems with cron
> I have scoured the net, run cron_diagnose.sh (no reported errors) and
> followed every suggestion I could find. Yet I cannot get cron to work.
> At the prompt I get the following error:
> Cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error
> 1062: The service has not been started.
> The Event Logs say that crontab as well as cron could not be found.
> Attached are the requested files.
> Please bear in mind that I am a TOTAL Linux/Unix novice, so
> apologies if
> it is an obvious problem.
> Any help would be appreciated.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html