public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* How to start and verify cron?
@ 2019-07-10 16:55 David Karr
  2019-07-10 17:19 ` Brian Inglis
  0 siblings, 1 reply; 17+ messages in thread
From: David Karr @ 2019-07-10 16:55 UTC (permalink / raw)
  To: The Cygwin Mailing List

I've checked the user guide and the FAQ, and I can't find any information
about how to start cron and verify that it's working.  I found other blog
posts on other sites, but some of them are old.

I had installed cron, and I thought it was working, but now I think that it
is not.  If I edit "~/crontab" and then run "crontab -l", it lists the
changes I've made to jobs, so at least that is working.  The real job I
have didn't appear to be doing what it was supposed to be doing, so I added
a new trivial job that just appends output from "date" to a file in my
homedir, and after the scheduled time of the job, the file was not created.

This is the additional job I added:

    40,42,44 * * * * date >> /home/<myuid>/date.txt

I did find a "/var/log/cron.log", but it is empty, and the modtime is from
a few months ago.

One blog post I found talks about running "cygrunsrv -I cron -p
/usr/sbin/cron -a -D". I just did this, and it reports "The specified
service already exists."

This is my uname -a output:

    CYGWIN_NT-6.1 ... 3.0.3(0.338/5/3) 2019-03-09 19:12 x86_64 Cygwin

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

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2019-07-13  8:26 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-10 16:55 How to start and verify cron? David Karr
2019-07-10 17:19 ` Brian Inglis
2019-07-10 22:15   ` David Karr
2019-07-10 23:04     ` Brian Inglis
2019-07-11 19:57       ` David Karr
2019-07-11 20:12         ` Vince Rice
2019-07-11 20:23           ` Vince Rice
2019-07-11 21:18             ` David Karr
2019-07-11 21:52               ` Vince Rice
2019-07-11 21:20         ` David Karr
2019-07-11 22:57           ` René Berber
2019-07-11 23:21             ` René Berber
2019-07-12 15:20           ` Brian Inglis
2019-07-12 16:18             ` David Karr
2019-07-13  8:26               ` Brian Inglis
2019-07-13  7:59             ` Henning
2019-07-13  8:21               ` Brian Inglis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).