M
Marc Girod
Hello,
Only partly a Perl question...
For some reason (don't ask...) I need to read data from stdin after
having invoked a program remotely, with ssh.
Surprise: there is nothing there...
Demo:
$ cat rsdtin
#!/usr/bin/perl -w
use strict;
use warnings;
my @ssh = qw(/usr/bin/ssh -q);
system(@ssh, qw(myhost /bin/date));
my @a = <>;
print "a: @a\n";
$ cat << eot | rstdin
aaa
bbb
eota:
$
Something I miss?
I thought of using Net::SSH:erl, but I had some problems to install
it (or some dependency) in a way which would work on both Solaris 8
and 10...
Thanks,
Marc
Only partly a Perl question...
For some reason (don't ask...) I need to read data from stdin after
having invoked a program remotely, with ssh.
Surprise: there is nothing there...
Demo:
$ cat rsdtin
#!/usr/bin/perl -w
use strict;
use warnings;
my @ssh = qw(/usr/bin/ssh -q);
system(@ssh, qw(myhost /bin/date));
my @a = <>;
print "a: @a\n";
$ cat << eot | rstdin
aaa
bbb
eota:
$
Something I miss?
I thought of using Net::SSH:erl, but I had some problems to install
it (or some dependency) in a way which would work on both Solaris 8
and 10...
Thanks,
Marc