$list = system('ssh usern...@domain.com '/usr/bin/perl /cgi-bin/dir-list.pl
'");

Hmm, if it's a cgi-bin script, wouldn't use LWP (or curl or ...) work too?

On Wed, Nov 8, 2017 at 6:15 PM, SSC_perl <p...@surfshopcart.com> wrote:

>         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/
>
>
>


-- 

a

Andy Bach,
afb...@gmail.com
608 658-1890 cell
608 261-5738 wk

Reply via email to