Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-27-2004, 05:09 PM   #1
Registered: May 2003
Location: PA
Posts: 82

Rep: Reputation: 15
Sample of my /etc/crontab that isn't working..?

<-----Begin File----->

# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly

00 12 * * * /root/sc*/
00 15 * * * /root/sc*/
00 17 * * * /root/sc*/
00 20 * * * /root/sc*/
00 22 * * * /root/sc*/
00 24 * * * /root/sc*/

I'm having problems with the lines that attempt to run This is a shell script that I made to sort through my logs and message me if their are intrustion attempts. I scheduled this program, /home/scripts/ , in crontab to run throughout the day. However it doesnt' seem to work, and I really don't want to resort to the cron.daily or the "at" command.

I want to run every day at noon,3,5,6,10,12.

Any suggestions are well appreciated.


Last edited by stakhous; 04-27-2004 at 05:27 PM.
Old 04-28-2004, 05:39 AM   #2
Senior Member
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
For starters you say that the script's location is /home/scripts/ but your crontab entries have /root/sc*/ Even if you mean $HOME/scripts/, using .../sc*/ is probably a bad idea. Why not use the full path?

Also, the actual errors would be nice to have.



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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
crontab not working durgap Linux - General 6 09-01-2005 03:38 PM
crontab nor working navaladi Mandriva 11 01-17-2005 07:58 AM
crontab not working subaruwrx Linux - Newbie 8 08-17-2004 10:12 PM
Crontab not working Neorio *BSD 1 12-02-2003 08:34 PM
Sample Working ipchain that allows http,ftp,ssh for internal and external network munisp Linux - Networking 1 11-09-2001 06:49 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:44 AM.

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