> On Nov 9, 2017, at 2:06 PM, David Precious wrote:
>
> you'll get whatever the script output to STDOUT.
Thanks a million, Dave! STDOUT was what I was missing. I've never
used that before, so this was news to me. The remote script now returns a
string that I can manipulate and use i
On Thu, 9 Nov 2017 12:50:05 -0800
SSC_perl wrote:
> > On Nov 8, 2017, at 5:16 PM, thelip sia wrote:
> >
> > you can use backtick to store the output.
> > $list = `ssh usern...@domain.com
> > '/usr/bin/perl /path/to/dir-list.pl'`;
>
> Thanks, Heince. I had mistakenly thought those were
> On Nov 8, 2017, at 5:16 PM, thelip sia wrote:
>
> you can use backtick to store the output.
> $list = `ssh usern...@domain.com '/usr/bin/perl /path/to/dir-list.pl'`;
Thanks, Heince. I had mistakenly thought those were synonymous with
each other. And, of course, this morning, doing a
$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 wrote:
> I have a script on a remote server that creates a list of all
> directories on th
On Thu, 9 Nov 2017 08:16:47 +0700
thelip sia wrote:
> you can use backtick to store the output.
> $list = `ssh usern...@domain.com '/usr/bin/perl /cgi-bin/dir-list.pl'`;
>
Indeed, but note that one should be careful when interpolating strings there:
* http://perl-begin.org/topics/security/code