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
How to get the exit status yhacks Shell Programming and Scripting 1 05-19-2008 09:06 AM
check exit status - Expect Script iamcool Shell Programming and Scripting 1 01-02-2008 09:07 AM
how to check exit status in awk script epall UNIX for Dummies Questions & Answers 1 06-24-2006 08:27 PM
checking exit status of a shell script kdipankar Shell Programming and Scripting 2 05-09-2006 02:08 AM
ftp exit status. oracle8 UNIX for Advanced & Expert Users 1 10-22-2001 12:34 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 03-24-2005
VijayKumar VijayKumar is offline
Registered User
  
 

Join Date: Mar 2005
Posts: 2
CronTab script exit status 134

Hi All,
I have one shell script through which I am executing some datastage and quality jobs(these are ETL Jobs), when I run the script through unix prompt then the script is executing fine and getting desired results.
But when I schedule the same script in crontab then in the middle of the script it is exiting with exit status code of 134.

Could any one guide me how to overcome this issue. Thanks in advance

Thanks & Regards
Vijay Kumar
  #2 (permalink)  
Old 03-24-2005
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,131
Not too much to go on here... But if you don't have an explicit exit statement to set the return code, most shells effectively do a:
return $?
which is to say that the return the exit code of the last command that they ran. So your script probably ran one or more programs. And the last one exited with 134. So you need to look at the docs for that program.
  #3 (permalink)  
Old 03-24-2005
tmarikle tmarikle is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2005
Posts: 683
Another thing to look at is your environment. cron doesn't neccessarily pick up some environmental parameters set by your interactive shell. If, when you log on interactively, you have, say a bunch of Oracle parameters set by .profile, you aren't neccessarily going to have those when cron launches your script. This link has covered this.

Thomas

Last edited by tmarikle; 03-24-2005 at 05:20 PM..
  #4 (permalink)  
Old 03-24-2005
VijayKumar VijayKumar is offline
Registered User
  
 

Join Date: Mar 2005
Posts: 2
Thankyou verymuch

I have edited my .profile to export the environment variable settings that my script uses and it is working.

Thanks & Regards
Vijay Kumar
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 03:14 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