scriptoutput=$(script.pl ${arg1} ${arg2} 2>&1) echo "number returned from script -> ${scriptoutput}" [download]
In reply to Returning from a program by atopolc in thread Returning from a program by peschkaj