Crontab -e doesnt run my script !
sorry guys for asking this question, i know theres a lot of topic talking 'bout this but nothing worked for me!
i just want to run a simple script from cron to make my websites logs... this is only one line of code... Code:
for i in /etc/webalizer/*.conf; do webalizer -c $i; done i tried to put it in a file and called it from cron --> didnt work anyone can help me with this? thank you very much Luke. btw : this code works if i type it myself without cron :scratch: |
what is the full cron entry?
|
tried
* * * * * sh /etc/webalizer/c0de.luke also tried * * * * * . /etc/webalizer/c0de.luke also tried * * * * * for i in /etc/webalizer/*.conf; do webalizer -c $i; done etc ....... tried a lot of things but none of them worked :confused: |
well that entry is totally invalid. do you know how to write a cron entry? when do you expect the entry to actually run?? by only having stars there you are saying that (if it were possible, and cron didn't dismiss the entry outright) that cron would always run the command, every possible time it ever could, every minute it would run that command... you don't want to be doing that. not good at all. read up on cron.
|
lol i know man,
its just for the purpose of making it happens NOW and its not invalid it works ;) anyway i let it run every hour (59 minutes) i know its not good at all to let this thing like this too and etc etc just need some clues to figure WHY its not working at all! thanks. luke. |
All times are GMT -5. The time now is 08:17 PM. |