I have a script on a remote server that creates a list of all 
directories on the server that end in a dash.  I need that list on my laptop.  
Is it possible to get the result into a variable in my local script by 
triggering the remote script via ssh?  I've tried this:

$list = system('ssh [email protected] '/usr/bin/perl /cgi-bin/dir-list.pl'");

but it just returns '0'.  The system call is working fine - I just can't get 
the result returned in $list.

        Searching hasn't returned an answer.  Is there another way to get what 
I'm after?

Thanks,
Frank
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/


Reply via email to