Re: Get pexpect to work

2006-10-29 Thread drake
Jurian Sluiman wrote: > Ok, somebody helped my and found with "help(child.sendline)" that the > number (7) is the number of characters from my password. > > Still there doesn't seem to be that anything strange is happening. With > the logfile printed out, I found that child.expect places a 0 behin

Re: Get pexpect to work

2006-10-29 Thread Jurian Sluiman
Ok, somebody helped my and found with "help(child.sendline)" that the number (7) is the number of characters from my password. Still there doesn't seem to be that anything strange is happening. With the logfile printed out, I found that child.expect places a 0 behind the next rule. Is this always

Get pexpect to work

2006-10-29 Thread Jurian Sluiman
Hi all, For my first script, I'm trying to build a program to set up a vpn connection. I'm using pexpect to handle this, but I can't get it to work. The sendline() is causing troubles. I tested it in the interactive promt, with these results: >>> import pexpect >>> child = pexpect.spawn("vpnc-conn

Get pexpect to work

2006-10-28 Thread Jurian Sluiman
Hi all, I'm trying to build a program to set up a vpn connection. I'm using pexpect to handle this, but I can't get it to work. The sendline() is causing troubles. I tested it in the interactive promt, with these results: >>> import pexpect >>> child = pexpect.spawn("vpnc-connect tudelft\ nop