In article <[EMAIL PROTECTED]>, Ahmed Moustafa wrote: > Hi All, > > I'm calling a Java application using "system". How can I know the return > code of the called Java application?
perldoc -f system (...) The return value is the exit status of the program as returned by the "wait" call. To get the actual exit value divide by 256. See also the exec entry elsewhere in this document. You can check all the failure possibilities by inspecting "$?" like this: $exit_value = $? >> 8; $signal_num = $? & 127; $dumped_core = $? & 128; -- briac A leaping trout. Three foxes near the market-place. A lark nests. A lark sings. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]