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.
Any ideas?
$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.
Any ideas?