LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Crontab -e doesnt run my script ! (https://www.linuxquestions.org/questions/linux-general-1/crontab-e-doesnt-run-my-script-349546/)

c0nsur 08-03-2005 07:41 AM

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 crontab -e --> didnt work
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:

acid_kewpie 08-03-2005 07:45 AM

what is the full cron entry?

c0nsur 08-03-2005 07:49 AM

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:

acid_kewpie 08-03-2005 04:29 PM

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.

c0nsur 08-03-2005 11:21 PM

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.