View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 07-23-2009, 01:14 PM   #1
Registered: Jul 2009
Posts: 83

Rep: Reputation: 15
Cron job question

I have script that sends an email. I setup cron job with that script as follows.

#crontab -e
added as following to run every 5mins.
*/5 0 * * * /usr/local/bin/portmon

I checked cron is running. But I'm not getting any emails as I get it when I ran manually. Any ideas
Old 07-23-2009, 01:17 PM   #2
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,516

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
Cron has a limited PATH
Make sure to provide the whole path to all the commands in the script.
The owner of the cron, should recieve a mail, if cron has problems.


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
cron job question kashyapvirgo Linux - General 6 02-24-2007 02:07 AM
Cron job question a2vr6 Linux - Newbie 8 11-17-2006 02:33 PM
cron job every 2 seconds question ionic_slimm Linux - Certification 7 08-10-2006 07:22 AM
Cron Job Question tarballed Linux - Newbie 4 06-20-2006 04:39 PM
Cron Job Question abhijeetudas Linux - Software 2 03-02-2006 12:27 AM

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