Tony,

[EMAIL PROTECTED] wrote on Thu, 31 May 2001 13:37:30 +0100 in
<[EMAIL PROTECTED]>:

> I'm spawning a process from within a perl script and then doing a waitpid
> on it and checking the return status,
> I  am looking at $? which appears to return the pid and a status in the
> next 8  bits.
> 
> However I really need to see the VMS exit status , the documentation
> perlvms.pod seems to suggest that this will be contained in $^S
> however it appears to be always blank. ( perl version 5.6.1)
> 
> Is the VMS exit status available ?

Add a:

use vmsish qw( status);

and $? will contain actual VMS exit codes. Otherwise it always contains
a *nix formatted thing that's useless.

> Aplogies for asking silly questions, but I'm finding the perlvms.pod to be
> less than 100% accurate.

No problem.

Ed James                           [EMAIL PROTECTED]
TeleCommunications Systems, Inc.   voice 410-295-1919
2024 West Street, Suite 300              800-810-0827 x1919
Annapolis, MD 21401-3556           fax   410-280-1094

Reply via email to