Hi;<br>I'm running Pexpect (no discussion list) with the following code:<br><br>#! /usr/bin/python<br>import pexpect<br><br>def runVpopmail(whatdo, acct, domain, newpw, oldpw=''):<br>  if whatdo == 'vadduser':<br>
    child = pexpect.spawn('/home/vpopmail/bin/%s %s@%s %s' % (whatdo, acct, domain, newpw))<br>  elif whatdo == 'vchangepw':<br>    child = pexpect.spawn('/home/vpopmail/bin/%s' % (whatdo))<br>    child.expect('Please enter the email address: ')<br>
    child.sendline('%s@%s' % (acct, domain))<br>    child.expect('Enter old password: ')<br>    child.sendline(oldpw)<br>    child.expect('Please enter password for %s@%s: ' % (acct, domain))<br>    child.sendline(newpw)<br>
    child.expect('enter password again: ')<br>    child.sendline(newpw)<br>  return child<br><br>No matter whether I try to add a user or edit a password, the fn seems to return that everything is good, but nothing ever happens. When I place a return of the child value and run it with whatdo==vadduser I get the following output:<br>
<br>version: 2.3 ($Revision: 399 $)
command: /home/vpopmail/bin/vadduser
args: ['/home/vpopmail/bin/vadduser', '<a href="mailto:test2@globalsolutionsgroup.vi">test2@globalsolutionsgroup.vi</a>', 
'qqq']
searcher: None
buffer (last 100 chars): 
before (last 100 chars): None
after: None
match: None
match_index: None
exitstatus: None
flag_eof: False
pid: 1518
child_fd: 3
closed: False
timeout: 30
delimiter: pexpect.EOF
logfile: None
logfile_read: None
logfile_send: None
maxread: 2000
ignorecase: False
searchwindowsize: None
delaybeforesend: 0.05
delayafterclose: 0.1
delayafterterminate: 0.<br><br>I don't know what this means. Any ideas on how to troubleshoot this?<br>TIA,<br>beno<br>