LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 03-17-2011, 01:59 AM   #1
pinga123
Member
 
Registered: Sep 2009
Posts: 676
Blog Entries: 2

Rep: Reputation: 36
Crontab issue


We have configured a script to be run at specific time using crontab.

Code:
# crontab -l
15 11 * * * VM_Count_V4.sh
as per the crontab entry script should run every day 11.15 a.m

Every time when the script is executed i get a mail but when i run it using crontab it doesn't send any mail.

However when i execute it manually i get the mails.

Even the execution is getting logged in cron log.

Code:
/var/log/cron
Mar 17 11:15:01 XXXX crond[11708]: (root) CMD (VM_Count_V4.sh)
Please suggest.
 
Old 03-17-2011, 02:45 AM   #2
Chirel
Member
 
Registered: Nov 2009
Posts: 55

Rep: Reputation: 19
Hi,

Check the PATH content when running from cron and when running manually.

I guess it's the issue.
 
1 members found this post helpful.
Old 03-17-2011, 02:56 AM   #3
pinga123
Member
 
Registered: Sep 2009
Posts: 676
Blog Entries: 2

Original Poster
Rep: Reputation: 36
Quote:
Originally Posted by Chirel View Post
Hi,

Check the PATH content when running from cron and when running manually.

I guess it's the issue.
You were right thanks for helping.
I specified the exact path for the script and its working now.
 
  


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
crontab issue,need help aditya_moon Linux - Newbie 2 02-07-2011 11:54 PM
[SOLVED] Crontab Issue shii_va Linux - Server 2 09-15-2009 12:30 PM
crontab issue adnanm Linux - Newbie 1 03-16-2007 03:28 AM
crontab issue houssamfarag Red Hat 2 06-28-2006 12:56 AM
crontab issue lappen Linux - Newbie 6 05-24-2004 06:47 PM


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