[CentOS] Scheduling tasks using cron...

Mon Jan 9 06:01:27 UTC 2006
Peter Arremann <loony at loonybin.org>

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?

Peter.