![]() |
|
|
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 |
| 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 07:44 AM |
| return code from script | mpang_ | Shell Programming and Scripting | 2 | 10-23-2007 06:50 PM |
| How to get a return value from the script in my master script | mahek_bedi | Shell Programming and Scripting | 2 | 08-09-2007 01:30 PM |
| Can I return a value from tclproc to my ksh script? | dfb500 | Shell Programming and Scripting | 5 | 03-21-2006 10:45 AM |
| return valuse from child script to parent script | borncrazy | Shell Programming and Scripting | 1 | 08-20-2004 04:39 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
script to return value
I have 3 scripts
script A - wrapper script to disguise invoker true identity script B - perform database operation and return a value (either W/H) -> return value by echoing the result script C - use script A to mask as the database owner then invoke script B to retrieve the value -> /sys1/proclib/wrapper.sh dbadmin status.sh I want to store the result in a variable, hence, status=`/sys1/proclib/wrapper.sh dbadmin status.sh` but the result that I got back is actually "[YOU HAVE NEW MAIL] P" instead of just "P". I found out that when script A is invoked, it would automatically echo "[YOU HAVE NEW MAIL]" to stdout. All I want to be able to get the result from script B, anyone can help? Thanks! |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|