![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| to pick up the Return Code ( RC) from the mailx command and return it to SAS uisng 's | manas6 | UNIX for Dummies Questions & Answers | 0 | 06-05-2008 03:44 AM |
| how to get return code in one line | bluemoon1 | Shell Programming and Scripting | 6 | 09-13-2007 07:09 PM |
| asking about return code | naamas03 | Shell Programming and Scripting | 3 | 08-28-2007 01:53 AM |
| Informix function return value needs to be captured in shell script | jeniferz | UNIX for Dummies Questions & Answers | 3 | 04-15-2005 02:33 PM |
| Return Code of tar in AIX | dupeng | AIX | 3 | 02-22-2004 09:05 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
return code not captured
Hi all,
We have a script in our Unix box(HP-UX 11.11) which is invoked as Code:
script1.sh param1 param2 >>${logfile} script2.sh "param"
What I would like to know is whether this is a valid syntax? And why the script2 doesnt catch the error? Any suggestions would be very helpful. Regards, Ranj Last edited by ranj@chn; 09-05-2006 at 03:38 AM. Reason: typo |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Code:
possibilities:
script1.sh param1 param2 >>${logfile} || script2.sh $? "param"
script1.sh param1 param2 >>${logfile} && script2.sh "param"
|
|
#3
|
|||
|
|||
|
thanks Jim
Thanks Jim. So, the above syntax is wrong then. I will work the suggestions and come back later.
|
|||
| Google The UNIX and Linux Forums |