Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re: Communication between Windows and Linux via Perl

by ambrus (Abbot)
on Apr 11, 2013 at 21:13 UTC ( #1028234=note: print w/replies, xml ) Need Help??

in reply to Communication between Windows and Linux via Perl

Install putty to your machine. This comes with plink, a command-line ssh client that doesn't use a terminal emulator window on the client side. Import your keyfile to the PuttyGen program and save it in putty's private key file format. Spawn plink from your perl script with something like

$error = system q(plink -i yourkeyfile.ppk root@ "ls /ho +me" > outputfile.txt);

Then, if $error is false, read the output file.

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


    Good idea. Very thanks. I'll try it.

    Up to now, the problem is still existing, but I'm too busy to finish this script. Some days later, I'll change a new environment and try again. Then I'll post the new progress.

    Thanks and Best Regards, Wei

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1028234]
[erix]: who can explain to me why Primary Key Fragmentation (whatever it may be) might be a problem?
[jedikaiti]: Pretty!
[erix]: ( TBH, I think it's a load of bull -- but maybe I'm mistaken )
[erix]: Hey that's Hungary - wave down ambrus and tell him to reboot his systems!
[choroba]: it might be a problem if you expect to reach the maximal possible value soon without squashing the ids
[erix]: that's really impossible with bigint
[erix]: and the site is still only 'hopefully' active :)

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2017-06-23 15:42 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (550 votes). Check out past polls.