Thank you Jeff, it does work :))
But for some reason, it tells me permission denied
when it tries to read the remote file even though I
can view it by ssh onto it manually...
Priss
--- Jeff AA <[EMAIL PROTECTED]> wrote: >
> Try
>
> @lines = `/usr/local/bin/ssh -l priss remotehost
> cat list
Try
@lines = `/usr/local/bin/ssh -l priss remotehost cat list-txt`;
and then skip any blank lines at this end...
foreach my $line ( @lines ) {
chomp $line;
next unless $line;
}
regards
Jeff
> -Original Message-
> From: Priss [mailto:[EMAIL PROTECTED]]
> Sent: 06 September 200
try the execution of that block in eval ().
__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-
On Fri, 6 Sep 2002, Priss wrote:
> Hiya,
>
> Wonder if someone can correct me, I am trying to get a
> list into an array from a file on a remote machine.
> For some reason, it didn't work:
>
> @array = `/usr/local/bin/ssh -l priss remotehost
> "open(FILE,"/home/priss/list-txt");
>