From: Austin S. <te...@of...> - 2007-03-15 18:43:55
|
On Thu, Mar 15, 2007 at 02:05:00PM -0400, Bradford Ritchie wrote: > I would use a hex editor to view the log file so that you can see all > characters literally. Use "man ascii" to figure out what each one means. > Sometimes it's a CR or LF character that you're not catching. > You can also just turn on Exp_Internal. It will print out the hex codes it sees and tell you what it isn't matching. > > > >*Blank line* > > > >*Blank line* > > > >*Data ONTAP (testserver.domainname.com)* > > > >*login:* ^^ No space. > >* * > > > >*$which = $exp->expect ( 20, "$user_id\@$host_ip\'s password: ",$Prompt, > >"login: ","[local_host_name%#]" )*; ^^ space. If you are looking for a space and there isn't one it will fail. Austin |