The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
cron entry rujus UNIX for Dummies Questions & Answers 7 01-29-2007 05:36 PM
cron entry error capeme Shell Programming and Scripting 6 10-26-2006 09:05 AM
cron entry issue --- help required Jamesravid Shell Programming and Scripting 1 02-02-2006 03:30 AM
Cron entry rramanuj AIX 1 11-01-2005 02:35 PM
Hazardous Duplicate Cron Entry? nag_sundaram HP-UX 3 07-14-2005 07:56 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-21-2005
hkapil hkapil is offline
Registered User
  
 

Join Date: Sep 2005
Posts: 10
Cron job entry not running

Hi,
I am facing this problem . My Cronjob entry is not running !!!
I am having Sun solaris 9 and cronjob entry is

"45 1 * * * /safedir/rdns/opt/RDNS1.1Scripts/drpl_audit_log_script.sh_orig > /dev/null 2>&1"

Now when I try to look in the output log files it creates, it is some file with entry like this -
"crw-rw-rw- 1 root sys 13, 2 Nov 21 05:30 mm@0:null"

Now I am not able to open this file or view this file!!!

So please help me to find out the reasons or cause why cronjob is not running.!!??


Thanks
Himanshu
  #2 (permalink)  
Old 11-21-2005
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
Quote:
"45 1 * * * /safedir/rdns/opt/RDNS1.1Scripts/drpl_audit_log_script.sh_orig > /dev/null 2>&1"

Now when I try to look in the output log files it creates, it is some file with entry like this -
"crw-rw-rw- 1 root sys 13, 2 Nov 21 05:30 mm@0:null"

Now I am not able to open this file or view this file!!!
Your crontab job is probably running just that you specified that you didn't want the output.

You are sending your output to /dev/null (> /dev/null) which is a way of stating you don't want the output saved unless there is a problem ( 2>&1). If you do want the output from the script, then don't point the output to /dev/null. Set up your entry to a log file of your own creation (such as /tmp/drpl_audit_log_script.log ). Read the man page on crontab
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:05 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0