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
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

 
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
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 01-24-2007
mpang_ mpang_ is offline
Registered User
  
 

Join Date: Mar 2006
Posts: 89
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
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 05:04 AM.


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