Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
the thing is... the socket process doesnt terminate prematurely and at the same time go to the next process. it just hangs there. got any ideas?#!/usr/bin/perl -w use IO::Socket; $remote = IO::Socket::INET->new( Proto => "tcp", PeerAddr => "210.212.226.195", PeerPort => "ssh(22)", ) || die "cannot connect"; $remote->autoflush(1); while (defined ($line = <$remote>)) { print STDOUT $line; } $remote->exit(0); print "Hello World!";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how to terminate an IO:Socket Process prematurely?
by Aristotle (Chancellor) on Jun 02, 2002 at 18:17 UTC | |
|
Re: how to terminate an IO:Socket Process prematurely?
by kodo (Hermit) on Jun 03, 2002 at 07:13 UTC | |
by Anonymous Monk on Jun 03, 2002 at 15:57 UTC |