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.
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.
On Sun, 2006-01-08 at 23: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.txtThat looks right for today, but normally you would only specify one or the other of the day/month or day-of-week items and use * for the others. -- Les Mikesell lesmikesell at gmail.com