I have a K shell script a.scr calling b.scr.
b.scr does some calulation and returns a value. I need this value passed back on to a.scr for further processing?
Any help on how to pass back the value is greatly appreciated.
The b.scr script must write the result to this standard output:
echo "$CalculedValue"
The a.scr must capture the stdout of the b script:
ValueWanted=`b.scr arglist`
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.