http://qs321.pair.com?node_id=189545


in reply to Returning from a program

Why not print to standard error anything that you would like to return to kshell.
Your kshell script could then capture that information.

This is how it would look.

In perl:
 print STDERR 12.34

In kshell:
scriptoutput=$(script.pl ${arg1} ${arg2} 2>&1) echo "number returned from script -> ${scriptoutput}"