![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | 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 and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Capturing last command execution status in a script. | videsh77 | Shell Programming and Scripting | 2 | 04-12-2007 01:19 PM |
| Getting the exit status of a remote command | zoonalex | Shell Programming and Scripting | 1 | 08-23-2006 04:58 PM |
| Status code of last command execution | tipsy | Shell Programming and Scripting | 1 | 07-21-2006 01:14 PM |
| Verifying remote command status | ravikiran | HP-UX | 0 | 06-08-2006 10:36 AM |
| Success status of mailx command | superprogrammer | UNIX for Dummies Questions & Answers | 4 | 12-01-2005 07:09 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Below is a chuck of a shell script I have written. The problem I am having is with the test section. I want to test the status of the f60gen command but since I'm running the output of the f60gen command into tee, the test command is actually testing "tee" and not "f60gen". Is there a way to test the second to last command? If not, how can I make this work?
$ORACLE_HOME/bin/f60gen module=$PLL_FILE \ userid=apps/$APPS_PWD \ output_file=$PLX_FILE \ module_type=library \ batch=yes \ compile_all=special | tee -a $LOG_FILE 2>&1 if [ $? = 0 ]; then log_msg "Successfully generated $PLX_FILE" |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|