LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 08-03-2005, 08:41 AM   #1
c0nsur
Member
 
Registered: Aug 2004
Posts: 34

Rep: Reputation: 15
Question 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
 
Old 08-03-2005, 08:45 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
what is the full cron entry?
 
Old 08-03-2005, 08:49 AM   #3
c0nsur
Member
 
Registered: Aug 2004
Posts: 34

Original Poster
Rep: Reputation: 15
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
 
Old 08-03-2005, 05:29 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
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.
 
Old 08-04-2005, 12:21 AM   #5
c0nsur
Member
 
Registered: Aug 2004
Posts: 34

Original Poster
Rep: Reputation: 15
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
my database export shell script run from command line but not form crontab saifee Linux - General 11 01-29-2012 10:24 AM
crontab failure: permission denied trying to run script hedpe Linux - Software 5 05-03-2005 08:07 PM
Script doesn't run in crontab dani81 Linux - General 1 11-16-2004 04:42 AM
crontab doesnt works with all jobs. pxes351 Linux - Newbie 2 05-10-2004 02:11 AM
on Network Up Script run? On Battery power run script? v2-ncl Linux - General 0 12-08-2003 10:34 AM


All times are GMT -5. The time now is 11:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration