That's a great tip I'll have to save than.

-----Original Message-----
From: Martin Walsh <[EMAIL PROTECTED]>
Sent: Monday, March 17, 2008 9:38 AM
To: Nathan McBride <[EMAIL PROTECTED]>
Cc: tutor@python.org
Subject: Re: [Tutor] how to get response from os.system()


Hi Nathan,

Nathan McBride wrote:
> Yup I use the pexpect module for a lot however couldn't get 'pexpect.run' to 
> work with mysqldump piping to gzip 
> 

Just to hazard a guess -- when you want to pipe commands with pexpect
you have to spawn ('run', it seems, would work the same way) the shell
command as an argument to bash (or similar) since pexpect does not
natively interpret shell operators or wildcards, like redirect, pipe, etc..
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to