Need help with really elementary pexpect fragment

2011-12-19 Thread Saqib Ali
I want to write a pexpect script that simply cd's into a directory ("~/ install") and then runs a command from there. It should be so easy. But even my cd command is failing. Can't figure out what the problem is. The command line prompt is "[my machine name here] % " Here is the code fragment:

Re: Need help with really elementary pexpect fragment

2011-12-19 Thread Nick Dokos
Saqib Ali wrote: > > I want to write a pexpect script that simply cd's into a directory ("~/ > install") and then runs a command from there. It should be so easy. > But even my cd command is failing. Can't figure out what the problem > is. The command line prompt is "[my machine name here] % " >

Re: Need help with really elementary pexpect fragment

2011-12-20 Thread Saqib Ali
Oops! Good call. Thank you. You pointed out my mistake. - Saqib On Tue, Dec 20, 2011 at 12:31 AM, Nick Dokos wrote: > Saqib Ali wrote: > > > > > I want to write a pexpect script that simply cd's into a directory ("~/ > > install") and then runs a command from there. It should be so easy. >