[Twisted-Python] Problem with process ?

Andrew Bennetts andrew-twisted at puzzling.org
Tue Sep 14 08:41:27 EDT 2004


On Tue, Sep 14, 2004 at 01:31:36PM +0100, Andrew Bennetts wrote:
[...]
> If you want to do the shell's expansion and splitting of a commandline, just
> explicitly invoke then shell:
> 
>     return utils.getProcessOutput('sh', ['-c "ls -l *"'])

Gah, I of course meant:

    return utils.getProcessOutput('sh', ['-c', 'ls -l *'])

-Andrew.





More information about the Twisted-Python mailing list