[SATLUG] cron help?

Paul Halmos paul at paulhalmos.com
Tue Sep 28 22:59:13 CDT 2010


As root, type the following:

touch /var/log/cron
/etc/init.d/crond restart


That should create the file and then hopefully cron will begin to log.

On Sep 28, 2010, at 10:07 PM, "Richard Suberg" <rsuberg at satx.rr.com> wrote:

> Funny thing is, I have _yet_ to see any kind of log for cron.  I gotta be
> doing something wrong.... I see logs for other things in there, dmesg, etc..
> but nothing for cron in /var/log/ but I do see cups there and one other c
> but no cron...
> 
> Richard
> 
> -----Original Message-----
> From: satlug-bounces at satlug.org [mailto:satlug-bounces at satlug.org] On Behalf
> Of Bruce Dubbs
> Sent: Tuesday, September 28, 2010 12:13 AM
> To: The San Antonio Linux User's Group Mailing List
> Subject: Re: [SATLUG] cron help?
> 
> Richard Suberg wrote:
>> Ok, since I put the entry in syslog.conf with a path and hyphen nothing
>> showed up. Re-edited and put in a hyphen (not sure the difference, and the
>> help file confused me on it) I will see what happens next...but I did
> notice
>> when I checked the /etc/crontab file that it was listed to run the wrong
>> script (I wrote a newer/updated one) and tried also running the script in
>> crontab with the username of the owner of the home folder.  See what
> happens
>> now, since the script is set to run so late have to wait for the morning
> to
>> check on effects...
> 
> When I was teaching at SAC, I had students write a script like:
> 
> #!/bin/bash
> /usr/bin/logger -p local3.info "Test message"
> 
> and then add an entry to the crontab like:
> 
> * * * * *              /path/to/logit
> 
> Then check the logs.  There should be a test message every minute.  Once 
> that's done, then adjust the crontab and the script to do what you want.
> 
>   -- Bruce
> -- 
> _______________________________________________
> SATLUG mailing list
> SATLUG at satlug.org
> http://alamo.satlug.org/mailman/listinfo/satlug to manage/unsubscribe
> Powered by Rackspace (www.rackspace.com)
> 
> -- 
> _______________________________________________
> SATLUG mailing list
> SATLUG at satlug.org
> http://alamo.satlug.org/mailman/listinfo/satlug to manage/unsubscribe
> Powered by Rackspace (www.rackspace.com)


More information about the SATLUG mailing list