Christopher Benson-Manica wrote:
Ryan Gaffuri <rg******@cox.net> spoke thus:
Ill also need to return values. How do I do this? Im using GNU on
solaris 2.8 with korn shell scripts?
system( "path-to-script-here" ); /* this returns a value - use it */
However, that return value is implementation-specific.
[#3] If the argument is a null pointer, the system function
returns nonzero only if a command processor is available.
If the argument is not a null pointer, and the system
function does return, it returns an implementation-defined
value.
The OP would be best to check his documentation, or ask this question on
gnu.gcc.help or possibly on comp.unix.programmer (assuming there's a
standard unix form of the return value, I think so).
Brian Rodenborn