in reply to telnet waitfor problem

I do not know the particulars of the telnet module you are using. You could change the logic of your return
foreach my $cmd_telnet (@telnet_drop) { $telnet->print("$cmd_telnet"); if ($telnet->waitfor('/0 Successful/')){ print "$cmd_telnet \t Successful\n"; } else { print "$cmd_telnet \t NOT OK\n" } }

Replies are listed 'Best First'.
Re^2: telnet waitfor problem
by ultibuzz (Monk) on Mar 24, 2006 at 15:57 UTC
    i will try this tomorror because vpn is not working atm and let you know if it works or not.
    thx for the suggestion
Re^2: telnet waitfor problem
by ultibuzz (Monk) on Mar 27, 2006 at 18:20 UTC
    dosn't work
    returns the same error msg
    have no clue how i can get it to work