LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

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


<-----Begin File----->
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/

# 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*/burn.sh
00 15 * * * /root/sc*/burn.sh
00 17 * * * /root/sc*/burn.sh
00 20 * * * /root/sc*/burn.sh
00 22 * * * /root/sc*/burn.sh
00 24 * * * /root/sc*/burn.sh
<------END------->

I'm having problems with the lines that attempt to run burn.sh. 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/burn.sh , 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 burn.sh to run every day at noon,3,5,6,10,12.

Any suggestions are well appreciated.

Fusion

Last edited by stakhous; 04-27-2004 at 05:27 PM.
 
Old 04-28-2004, 05:39 AM   #2
hw-tph
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/burn.sh but your crontab entries have /root/sc*/burn.sh. Even if you mean $HOME/scripts/burn.sh, using .../sc*/burn.sh is probably a bad idea. Why not use the full path?

Also, the actual errors would be nice to have.


Håkan
 
  


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 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


All times are GMT -5. The time now is 10:58 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration