Visit Jeremy's Blog.
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 08-30-2006, 02:44 AM   #1
LQ Newbie
Registered: Aug 2006
Posts: 11

Rep: Reputation: 0

am new to linux, and am trying to configure a shell script to work twice a day at 3:15,
somehow it doesn't wor with the error says sh command not found,
what am I doing?

#crontab -e
#ur    mday    month   wday    who     command
0       3,15    *       *       *       root    /etc/periodic/
what is wrong?
and also i would appreciate if someone can lead me or through me at some to read on how to change defualt reporting email on linux box, RH, Debian or FC5 from root@localhost to be

thank you
Old 08-30-2006, 03:07 AM   #2
Registered: Mar 2006
Distribution: RedHat, Slackware, Experimenting with FreeBSD
Posts: 222

Rep: Reputation: 30
Your cron entry seems to be fine (assuming you mean to run the script at 3:00 am and 3:00 pm). It might be an error in your script. Could you post a head /etc/periodic/

EDIT: err.. didn't see your command parameter correctly. Why are you specifying the root user there? Only system cron jobs can specify users. You want to enter:

0 3,15 * * * /etc/periodic/

If you want logwatch information to another email address you'll need to edit /etc/log.d/logwatch.conf. Edit the MailTo parameter to reflect your preferences. This is for RedHat and FC5.

Last edited by SlackDaemon; 08-30-2006 at 03:16 AM.
Old 08-30-2006, 10:06 AM   #3
LQ Newbie
Registered: Aug 2006
Posts: 11

Original Poster
Rep: Reputation: 0
Thank you SlackDaemon, that was fast,
I appreciate your help,

below is the mcafee update script am trying to run,

# Update McAfee virus definitions

MAILER_CMD="/usr/bin/mail -s 'cron: McAfee Update Report'"

now my crontab looks like
0       18,15    *       *       *        /etc/periodic/


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 x2??? killahsmurf Slackware 2 05-24-2005 10:53 PM
Crontab wormraper Debian 4 05-15-2005 01:01 AM
Crontab reynacho_au Linux - Software 6 12-28-2004 03:09 AM
new to crontab desbyleo Solaris / OpenSolaris 15 12-16-2004 03:04 AM
system-wide crontab in /etc/crontab ner Linux - General 2 11-18-2003 12:35 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:19 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