In regards to the questionb yesterdat about checking the existance of a file
on a remote system from a HP UX system.  I'm doing the following

open my $list, "remsh $host_name ls -l /var/tmp/foo" or die $!;
my $check;
{
   local $/;
   $check = <$list>;
}

if($check +~ /"No such file/) {
   next;
} else {
   #do something else
}
close $list

I'm not capitureing any error messages with the "$check = <$list>;" line.
How would I change this so I can check for error messages?

Don Dukelow

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to