telnet automation script fails sometimes
问题 I am running the following simple telnet script which just logs into a machine and exits. The same script works fine (goes through 1000 iterations) from one Linux server but fails (consistently) from another Linux server (fails after say 200 attempts). In failure case, the number of iterations it takes to fail varies but failure is persistent. #!/usr/bin/perl use Net::Telnet; my $loop = 0; my $dumpfile = "dump.log"; my $inputfile = "input.log"; for ($loop =1; $loop <=1000; $loop++) { print "=