Supply example expect.pm code 
Author Message
 Supply example expect.pm code

Please supply by email:

code expect.pm for:

//
spawn woose $pgm args   ;## expect by Libes
sleep 4
set timeout 15
expect   {
        "$err1" { send "y\r"
         }

       "$a2"  {  
           send "PA\r"
           expect "$a5"
           send "$path\r"
           ...  
           send "n\r"              
        }

Quote:
}

set timeout 5
expect "$a2"
send "\r"
...
set timeout 5
expect  {
        "$err2"  {send "y\r"  }
        "$err3"  {send "ex\r" }
        "$a8"    {send "ex\r" }
Quote:
}

set timeout 5
expect "$a8"
send "ex\r"
exit
//

Also
Getting user input once spawned pgm?
How about 'interact?'
thanx




Fri, 14 Feb 2003 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Looking for Expect.pm Examples

2. Documentation or example code for SNMP.pm wanted

3. SubstrHash.pm example code

4. using Expect.pm, Tty.pm, Pty.pm

5. using Expect.pm, Tty.pm, Pty.pm

6. Expect.pm / Tty.pm / Pty.pm and HP-UX

7. Expect.pm not performing as expected

8. Expect.pm/Tty.pm Problems on HP-UX

9. Expect.pm/Tty.pm Problems on HP-UX

10. IO-Tty-0.02 and Tty.pm problems (expect.pm)

11. looking for examples of Dumper.pm and/or MLDBM.pm

12. Looking for examples using cgi.pm or form.pm

 

 
Powered by phpBB® Forum Software