sqspat has asked for the wisdom of the Perl Monks concerning the following question:
------------------ running script;my $nav_command2 = $ssh->exec('site pat'); #insert sleep here so command can be returned. sleep(1); my $nav_command5 = $ssh->exec('no subnet 15.15.15.0/24'); $ssh->waitfor('probe161(config-site)$',1)or die "Incorrect response";
pohara@pohara-desktop:~/automation$ perl CM-CONF-001.pl Incorrect response at CM-CONF-001.pl line 58. pohara@pohara-desktop:~/automation$
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::ssh::Expect --Waitfor function comparison question???
by jrsimmon (Hermit) on Jul 17, 2009 at 11:23 UTC |