[CentOS] Scheduling tasks using cron...

Johnny Hughes mailing-lists at hughesjr.com
Mon Jan 9 12:33:03 UTC 2006


On Mon, 2006-01-09 at 01:01 -0500, Peter Arremann wrote:
> On Monday 09 January 2006 00:51, Jose Alburquerque wrote:
> > Hi all.  Can anyone help me with scheduling tasks?  I'm running
> > Centos4.2 (updated via yum starting from 4.0).  I know I have vixie-cron
> > and anacron packages installed (came like that, from first install, I
> > guess).  I read the crontab syntax man page (man 5 crontab) and I made
> > an entry as a normal user (using crontab -e) that looks like the following:
> >
> > 30 0 9 1 1 /bin/ls -F /home/jose > /home/jose/home-listing.txt
> >
> > when I run the command "/bin/ls -F /home/jose >
> > /home/jose/home-listing.txt" it produces a file named "home-listing.txt"
> > in my home directory.  However, if I delete the file and wait for the
> > cron process to take place, the cron process never takes place at the
> > exact time of scheduling.  In fact I don't think it ever takes place
> > because the file just does not appear.  Am I doing something wrong?  Can
> > someone please help me!  I really need to be able to schedule processes
> > at *very* *specific* *times*.  Anyone?  Thank you.
> 
> Looks good to me... are you sure you have permissions for the output file to 
> be written? Is cron running? what is the output from /var/log/cron for that 
> timeframe?
> 

right ... the time that would have run was ...

Monday, Jan 9, at 00:30 on the time zone set on your machine ... is that
what you wanted.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.centos.org/pipermail/centos/attachments/20060109/aa44b113/attachment.sig>


More information about the CentOS mailing list