Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^6: Does Net::SFTP::Foreign support identity file and user password?

by Tanoti (Initiate)
on Sep 26, 2012 at 13:54 UTC ( #995771=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    
    ...
    );
    
    print '[' . $sftp_obj->error . "]\n";
    
  2. or download this
    #3536 1348667124.00000 new: This is Net::SFTP::Foreign 1.73
    #3536 1348667124.00000 new: Loaded from /usr/lib/perl5/vendor_perl/5.8
    +.5/Net/SFTP/Foreign.pm
    ...
    #3536 1348667124.00000 DESTROY: Net::SFTP::Foreign=HASH(0x9d25494)->DE
    +STROY called (current pid: 3536, disconnect_by_pid: )
    #3536 1348667124.00000 disconnect: Net::SFTP::Foreign=HASH(0x9d25494)-
    +>disconnect called (ssh pid: 3537)
    #3536 1348667124.00000 _conn_lost: _conn_lost
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://995771]
help
Chatterbox?
[1nickt]: tobyink perl -MTypes::Standard= is_Int -Mstrict -wE 'say 1 if is_Int 1.0'
[jdporter]: so that I can use the existing expand unix util. Otherwise, I'll probably use Text::Tabs.
[1nickt]: pryrt I guess I don;t really care if user 42 logs on as 42.0 ... more of an academic question at this point.
[LanX]: jdporter: open PIPE,'-|' ?
[LanX]: oh you want the result line by line?
[jdporter]: ok, LanX, then what?
[jdporter]: It doesn't have to be line by line. Just "my program" "writes" to the external prog and also/then "reads" from it.
LanX open (You are not allowed to open to a command that pipes both in and out, but see IPC::Open2, IPC::Open3, and Bidirectional Communication with Another Process in perlipc for alternatives.)
[jdporter]: IPC::Open2, I guess
[jdporter]: yes, that

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (11)
As of 2017-05-24 20:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?