Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,

Can anyone help me in figuring out what the last result/exit code of 0xff refer when scheduled task had executed.

Thanks in adavnce.
  • Comment on Last Result/exit code for Scheduled Tasks

Replies are listed 'Best First'.
Re: Last Result/exit code for Scheduled Tasks
by borisz (Canon) on Jul 10, 2006 at 10:41 UTC
    Look at system.
    ... You can check all the failure possibilities by inspecting $? like this: if ($? == -1) { print "failed to execute: $!\n"; } elsif ($? & 127) { printf "child died with signal %d, %s coredump\n", ($? & 127), ($? & 128) ? 'with' : 'without'; } else { printf "child exited with value %d\n", $? >> 8; }
    Boris
Re: Last Result/exit code for Scheduled Tasks
by gellyfish (Monsignor) on Jul 10, 2006 at 10:54 UTC

    This is simply what perl set the EXITCODE to when it terminated, this could be because the program did exit 255 or that the program failed to compile or something. There should be something more specific in the "Status" column if there was a problem running the program.

    /J\