![]() |
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 |
| returning values from shell script to calling C program | nehamore | Shell Programming and Scripting | 2 | 02-04-2008 11:09 AM |
| The shell script is not returning proper result | clnsharma123 | AIX | 1 | 01-25-2008 04:54 AM |
| returning to the parent shell after invoking a script within a script | gurukottur | Shell Programming and Scripting | 5 | 09-26-2006 07:05 AM |
| Returning Strings from C program to Unix shell script | satguyz | High Level Programming | 11 | 12-30-2005 03:41 PM |
| Returning values from child to parent shell | acheepi | Shell Programming and Scripting | 4 | 07-15-2005 03:25 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Returning Values (shell Script)
I have an application on Informix 4GL, and I am invoking the shell script from the program, but I need to know if the shell script work fine or not, in order to continue the process.
I know that we can use $? to get the final status but this is on unix command. How can I return a value from the script?????? |
|
||||
|
Re: Returning Values (shell Script)
return value of shell skripts is like booleans
-------------- example 1: -------- ls echo $? //(this returns 0 for true) -------------- example 2: -------- ls xyz echo $? //(this returns 1 for false) |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|