The UNIX and Linux Forums  

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 not working manna UNIX for Dummies Questions & Answers 1 01-10-2008 02:04 PM
Cron job not working dkranes UNIX for Dummies Questions & Answers 5 10-26-2007 12:01 PM
Cron not working? christo16 UNIX for Dummies Questions & Answers 5 03-09-2007 02:55 AM
cron not working DaleCabell UNIX for Dummies Questions & Answers 1 07-28-2006 08:16 PM
CRON - How to tell it's working? jaffy1229 UNIX for Dummies Questions & Answers 7 04-15-2002 01:09 PM

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 01-08-2007
ragha81 ragha81 is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 145
cron job not working for some reasons

I set up a new cron job. I have set cron jobs many times in the past and never faced issues. For some reasons my new cron job is not working.This is how my cron job looks like. plz help me out guys.


Code:
3,8,13,18,23,28,33,38,43,48,53,58 * * * * /siebel/sblp900/home/FSMTaskChk/script
s/FSMTaskChk.ksh > /dev/null 2>&1

  #2 (permalink)  
Old 01-08-2007
aigles's Avatar
aigles aigles is offline Forum Advisor  
Registered User
  
 

Join Date: Apr 2004
Location: Bordeaux, France
Posts: 1,433
Your crontab entry seems to be correct.
Change the stdout and stderr redirection from /dev/null to a file.

Code:
3,8,13,18,23,28,33,38,43,48,53,58 * * * * /siebel/sblp900/home/FSMTaskChk/scripts/FSMTaskChk.ksh >> /tmpFSMTaskChk.log /2>&1

Check the logfile.


Jean-Pierre.
  #3 (permalink)  
Old 01-08-2007
ragha81 ragha81 is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 145
thanks aigles.. ur solution worked..
  #4 (permalink)  
Old 01-08-2007
ragha81 ragha81 is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 145
i found frm logfile that i didnt source in some variables
  #5 (permalink)  
Old 01-09-2007
Tris Tris is offline
Registered User
  
 

Join Date: Dec 2006
Posts: 20
Can Crontab executes bin files?

Hello!

I would like to ask if Crontab can execute bin files coz' i have this entry and it is not working.

Cron entry
36 10 * * * /bscsprod/bscs/prod/WORK/XREF/tehcron.sh

$cat tehcron.sh
#!/usr/bin/sh
/bscsprod/bscs/prod/WORK/XREF/teh -t -f MPPROFIL

Please advise.

Thanks!
  #6 (permalink)  
Old 01-10-2007
aigles's Avatar
aigles aigles is offline Forum Advisor  
Registered User
  
 

Join Date: Apr 2004
Location: Bordeaux, France
Posts: 1,433
  1. Check that your file is executable, if not chmod +rx
  2. Check you mail for message from cron (stdout+stdderr from your script)
  3. Redirect stdout and stderr in a file and checj the result


Jean-Pierre.
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:29 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