Re: Problem executing command via ssh

2019-08-27 Thread Eliza
on 2019/8/27 19:35, Shlomi Fish wrote: 3. What do you mean by "native"? sorry I was thinking Net::SSH is perl's builtin module like Net::SMTP etc. regards. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org

Re: Problem executing command via ssh

2019-08-27 Thread Shlomi Fish
Hi Eliza, On Mon, 26 Aug 2019 18:37:10 +0800 Eliza wrote: > Hello, > > on 2019/8/26 18:06, Shlomi Fish wrote: > > seehttps://perl-begin.org/uses/remote-login-and-commands/ - use a CPAN > > dist. Also note thathttps://metacpan.org/pod/IPC::Run is a commonly cited > > alternative to IPC::Open3

Re: Problem executing command via ssh

2019-08-26 Thread Eliza
Hello, on 2019/8/26 18:06, Shlomi Fish wrote: seehttps://perl-begin.org/uses/remote-login-and-commands/ - use a CPAN dist. Also note thathttps://metacpan.org/pod/IPC::Run is a commonly cited alternative to IPC::Open3 . Why not just using the native Net::SSH around modules.

Re: Problem executing command via ssh

2019-08-26 Thread Shlomi Fish
On Fri, 23 Aug 2019 19:16:55 +0300 Mario Galindez wrote: > Folks, > > I need to execute a program in a remote machine, that takes its input from > STDIN. > > I created a user in such remote machine, and set my program as the shell > for that account (so I don't need to provide shell access). >

Re: Problem executing command via ssh

2019-08-24 Thread Mike
Wow, a complicated question that I know very little about.  But since nobody else has jumped in, I will show my ignorance by suggesting this: Perhaps change $command to @command. or use something like local $/; These beginners questions are getting pretty complicated :-) Mike On 8/23/2019

Problem executing command via ssh

2019-08-23 Thread Mario Galindez
Folks, I need to execute a program in a remote machine, that takes its input from STDIN. I created a user in such remote machine, and set my program as the shell for that account (so I don't need to provide shell access). On my local node, I have this program: #!/usr/bin/perl use