I am having trouble capturing 'die' output. I have a script which calls another script on a different machine. If there is an error on the target machine's script it dies. I use a 'rsh' to call the target script but I can only capture print statements if I do:
$TARGET = `rsh target:/home/bin/Script.pl`;
The die statement will output to the screen, but I cannot read it to fork. I can also not change the target script.
Red Flag Submitted
Thank you for helping keep Tek-Tips Forums free from inappropriate posts. The Tek-Tips staff will check this out and take appropriate action.
Reply To This Thread
Posting in the Tek-Tips forums is a member-only feature.