From: Noah <ad...@en...> - 2007-10-24 22:07:30
|
Austin Schutz wrote: > On Wed, Oct 24, 2007 at 10:22:51AM -0700, Noah wrote: >> Hi there, >> >> It's been a while since I've coded in perl/expect. >> >> I am finding that when sending the "request snmp spoof-trap $trap" in >> the for loop that the command is sent without waiting for the prompt. >> In fact they are sent as fast as they can be. >> >> I am trying to figure out why that is happening. since expect is not >> waiting for the prompt the commands get truncated and CLI errors result, >> etc. >> >> What am I doing wrong? >> > Not using the debugging capabilities of the tool you are using. > Look for debug and exp_internal in the Expect docs. > > Austin will do - thanks Austin. |