Yves Glodt wrote:

> I tried something like this but the umask part does not work clearly...:
>
> newpid =
> os.spawnle(os.P_NOWAIT,'/usr/bin/touch','/usr/bin/touch','xyz','umask 0113')
>
> What would be the correct syntax for setting the umask for the created
> process...?

not sure, but something like

    try:
        old_mask = os.umask(0113)
        newpid = os.spawnle(...)
    finally:
        os.umask(old_mask) # restore

might work.

</F> 



-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to