I noticed you did not have any replies to this. This is bad because I am tring to accomplish the same thing.
Example is: set osver=`ver`
Tring to set the output of the version command into the variable osver. In unix scripting this is very simple by just doing "osver=`ver`" and the results of the ver command would be stored in the variable called osver.
Very interested if you found a solution that works because I have already tried the approach of putting the results into a file and then no sucess in reading it back out into a variable...

Let me know if you have found a solution and I will check other places and let you know if I find something that works...
Phil_Calhoun@agilent.com