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");
>           @arr1 = <FILE>;
>           close(FILE);
>           foreach(@arr1){
>             next if /^(\s)*$/;
>             chomp;
>             }
> "`;

You are trying to execute perl statements on a shell in your remotehost.
This will not work. 

You might want to take a look 
Net::SSH
Net::SSH::Perl


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to