whn i give a pexpect command as follows:
the problem is that i need to capture error returned by 'su' when wrong input is given. i tried something like this:
but it is not working,coz the prompt then goes to file.txt (i think so..) and pexpect finds nothing for child.expect() an returns error.
i m in urgent need of this,can somone tell how to capture errors in pexpect invokd commands.