Hi,
I am trying
to check existence of a file on a different Unix host within my PERL
program. I would do like the following in Unix script. How would I
do the same in PERL?
if [ `rsh hatchet-dom2 ls -l
$CORPDIR/*.${fileToCheck} | grep Mar | wc -l` -gt
0 ]
then
echo "Found the file so go on!"
else
echo "No such file so wait before going on!"
fi
then
echo "Found the file so go on!"
else
echo "No such file so wait before going on!"
fi
Peter Loo (Consultant)
NDC Health Information
Services
2394 E. Camelback Road,
Phoenix, AZ 85016
(602) 381-9354