The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #11 (permalink)  
Old 01-31-2002
LivinFree's Avatar
LivinFree LivinFree is offline
Goober Extraordinaire
 

Join Date: Jul 2001
Location: Portland, OR, USA
Posts: 1,584
Expect is very literal in what it expects...
A single space can ruin an entire script.

You might get lucky using wildcards, like so:

expect "*pass phrase:*"

Just be careful not to use too many, in case you match another line somewhere...

Also, make sure you are getting the case correct;
"Pass" does not equal "pass"