returning value from procedure to unix

niklas

New Member
I'm running a procedure on AIX and want to return a value to the calling unix-script that starts the progress-procedure. The only way I found out is to put a value in a value in a file on disk. Is there no other way to return values?

regards niklas
 

warba

New Member
If it is a simple value you want you can simply do:

OUTPUT=`pro -b -p a.r`;echo $OUTPUT

where a.r is a procedure like:
message "a".
quit.

This simply assigns the stdout of the progress session to the environment variable OUTPUT, etc..

If you need multiple values to export, you can parse them after the fact, or, just write to a file as you first suggested.

Warren.
 
Top