crontab
I am trying to find how crontab works.
As root crontab -e i insert this record * * * * * ls -l Where i must see ...the result..of the ls -l? How often this is being extracted? Continuously? |
Quote:
Usually you'll redirect the output of a command run by cron to some logfile ... Quote:
Yassou! Tink |
oups
I cant see anything thats why
|
Well normally you wouldn't, like Tink said, you'll need to direct it somewhere (or you should, by default, receive an email). To direct it:
* * * * * ls -l >/path/to/log/cronlog Or wherever you'd like. Then simply view the logfile to see what ls-l is outputing. Cool |
oooo
Lets take it from the beggining
i write crontab -e i insert this record: 1 * * * * ls -l > home/alaios/temp quit the crontab i wait about 10 min less /home/alaios/temp and the file is null...why? |
Because it's only going to run
in the first minute of every hour? :) Cheers, Tink |
All times are GMT -5. The time now is 01:53 PM. |