Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Disconnect from Remote Server

by salva (Abbot)
on Sep 29, 2010 at 06:23 UTC ( #862552=note: print w/replies, xml ) Need Help??


in reply to Disconnect from Remote Server

For your particular example, you can use SFTP instead of running remote commands and capturing their output.

This script from the Net::SFTP::Foreign distribution shows how to emulate a tail -f over SFTP.

Replies are listed 'Best First'.
Re^2: Disconnect from Remote Server
by rfbits (Initiate) on Sep 30, 2010 at 14:44 UTC
    Thanks Salva!
Re^2: Disconnect from Remote Server
by rfbits (Initiate) on Oct 05, 2010 at 01:55 UTC

    Hello,

    I get the following error message, when I execute the perl script:

    Undefined subroutine &Net::SFTP::Foreign::_catch_tainted_args called at /usr/lib/perl5/site_perl/5.10/Net/SFTP/Foreign.pm line 156.

    #!/usr/bin/perl use strict; use warnings; use Net::SFTP::Foreign; use Fcntl qw(SEEK_END); my ($host, $file, $user, $pwd, $port) = undef; my $sftp = Net::SFTP::Foreign->new($host, $user, $pwd, $port); $sftp->error and die "Unable to connect to remote host: ".$sftp->error +."\n";

    Thanks,

    Roger
      I have just uploaded to CPAN version 1.62 solving that problem.

        Thank you

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://862552]
help
Chatterbox?
[Corion]: ambrus: Sorry for running out on you yesterday regarding the HTTP module discussion
[Corion]: I hope I'll find time to turn my quest(ion) into a SoPW ;)

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2016-12-08 10:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (139 votes). Check out past polls.