[Zope] os.system in external method

Tilo Renz tilo.renz@student.uni-ulm.de
Fri, 17 Aug 2001 12:48:26 +0200


Philippe Jadin wrote:
> 
> Hello,
> 
> I'm trying to execute an external command from an external method.
> Altough it works when I do it from the python console, like :
> 
> $ python
> 
>  >>> import os
>  >>> os.system("/usr/local/zope/instance/var/images/jpeg2swf ABALONE.JPG
> out.swf")
> 
> It works and return 0 (under both root and my user account). btw I
> cannot 'su nobody' (user currently not available) for testing this as
> nobody.
> 

For 'su nobody' make sure the user nobody exists and has a valid
login-shell (not /bin/false). 
This is my entry from /etc/passwd:
nobody:x:65534:65534:nobody:/var/lib/nobody:/bin/bash 

Tilo