Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
The problem is that the open works on the local system. How do I open and work on the file that is located remotely?use strict; use Expect; my $session = new Expect; unless ($session->spawn("telnet $mach_connect")) { print "FATAL: could not connect to $tgt_mach\n"; exit 1; } ... login code here to bring the user to the prompt on the remote host open(FILEHANDLE,"+< $filename"); ... work on the file close(SNMPFILE);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How do I open a remote file
by tachyon (Chancellor) on Jul 13, 2004 at 09:12 UTC | |
|
Re: How do I open a remote file
by Happy-the-monk (Canon) on Jul 13, 2004 at 09:07 UTC | |
|
Re: How do I open a remote file
by ysth (Canon) on Jul 13, 2004 at 09:18 UTC |