splinky has asked for the wisdom of the Perl Monks concerning the following question:
I'm communicating with another system through its serial port. It's connected to a terminal server, so to me it's a socket connection via Net::Telnet. I opened the socket manually and used Net::Telnet's fhopen, so I have the socket available to me in the main program. My program is running on a Linux box.
What I want to do is send a file via zmodem to the other system. I haven't been able to find any Perl zmodem libraries, so I tried
open2($socket, $socket, ['sz', 'myfile']);
The error I got was:
open2: close(IO::Socket::INET=GLOB(0x940d78c)) failed: Bad file descri +ptor at ./tryit line 21
Line 21 is the "open2" line.
Does anyone have any suggestions? I'd really rather not re-implement zmodem in Perl if I don't have to.
Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Zmodem and Net::Telnet
by ikegami (Patriarch) on Feb 01, 2006 at 17:15 UTC | |
|
Re: Zmodem and Net::Telnet
by sgifford (Prior) on Feb 02, 2006 at 01:19 UTC | |
by splinky (Hermit) on Feb 03, 2006 at 23:30 UTC | |
|
Re: Zmodem and Net::Telnet
by samtregar (Abbot) on Feb 01, 2006 at 18:00 UTC | |
by splinky (Hermit) on Feb 01, 2006 at 19:56 UTC | |
|
Re: Zmodem and Net::Telnet
by duff (Parson) on Feb 01, 2006 at 23:47 UTC |