Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^3: Communication between Windows and Linux via Perl

by KevinZwack (Chaplain)
on Apr 10, 2013 at 20:45 UTC ( #1028039=note: print w/replies, xml ) Need Help??


in reply to Re^2: Communication between Windows and Linux via Perl
in thread Communication between Windows and Linux via Perl

I recently implemented something like this with Net::SSH::Any... Here's a code snippet...

my $ssh = Net::SSH::Any->new($ipAddr, user => $user, password => $password, backends => [qw/Net::SSH2/], timeout=>1, kill_ssh_on_timeout=>1); $ssh->error and die "Unable to Connect via SSH to $mac, " . $ssh->error); my ($output, $errput) = $ssh->capture2($cmd);

Replies are listed 'Best First'.
Re^4: Communication between Windows and Linux via Perl
by zhonghua (Novice) on Apr 11, 2013 at 14:18 UTC

    Hi,

    Thank you, I'll try it.

    Br, Wei

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1028039]
help
Chatterbox?
[Michael W]: So i can read ok from this how do i put data back inmy @Variables = ( $Map_Request_Date, $Map_Due_Date,$Map _Cutover_Date,$Map _Complete_Date,$Ma p_Approved_Date);
[Corion]: Michael_W: $Variables[0] = $Map_Request_Date; $Variables[1] = $Map_Due_Date; ...
[choroba]: ( $Map_Request_Date, $Map_Due_Date,$Map _Cutover_Date,$Map _Complete_Date,$Ma p_Approved_Date) = @Variables;?
[thezip]: something like: $Map_Request = <value>; etc. should work
[Corion]: Duh - I read it backwards. I shouldn't code today I guess ;)
[thezip]: G'day all, BTW!

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (15)
As of 2017-04-27 15:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (509 votes). Check out past polls.