[Zope3-Users] execute script from as root user

Chris Withers chris at simplistix.co.uk
Thu Jun 8 02:38:37 EDT 2006


Stephan Richter wrote:
> Use Python popen or popen3. It allows you to execute shell comands. As the 
> other response suggests, you can use "sudo" or "su" to become root.

Actually, since Zope 3 uses Python 2.4, you have access to the wonderful 
subprocess module, which I'd thoroughly recommend :-)

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk



More information about the Zope3-users mailing list