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$