t_rex_joe has asked for the wisdom of the Perl Monks concerning the following question:
Thanks for reading this and providing guidance.
I am attempting to use a CentOS server with Net:SSH2 module to connect and run commands via vshell (vandyke software) installed on the windows (win7 home premium) computer.
The purpose of this windows machine is to provide a “hop server” to a windows environment to run “psexec.exe” on the local server, gather the output and return to the perl script for crunching. I was using active state perl on the same windows box until I could not get alarms to work correctly. Besides, the permissions integrated with windows is a pain to setup after install.. Anyway.
I can connect to vshell and run “whoami”, “ver” and “dir c:\” without issue. The problem is when I run “psexec.exe” I only get half of the conversation.
However Running “ssh x.x.x.x” and running the command from the linux box to the vshell the command executes perfectly.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl with Net::SSH2, vshell and psexec
by salva (Canon) on Feb 10, 2014 at 08:47 UTC | |
by mmenza (Initiate) on Feb 10, 2014 at 12:42 UTC | |
by t_rex_joe (Sexton) on Feb 10, 2014 at 14:59 UTC | |
by t_rex_joe (Sexton) on Feb 10, 2014 at 14:56 UTC | |
by salva (Canon) on Feb 10, 2014 at 15:15 UTC | |
by t_rex_joe (Sexton) on Feb 10, 2014 at 15:19 UTC | |
|
Re: Perl with Net::SSH2, vshell and psexec
by shmem (Chancellor) on Feb 10, 2014 at 07:14 UTC | |
by t_rex_joe (Sexton) on Feb 10, 2014 at 14:40 UTC | |
|
Re: Perl with Net::SSH2, vshell and psexec
by t_rex_joe (Sexton) on Feb 11, 2014 at 13:18 UTC |