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 usern...@domain.com '/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: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/