Sun Grid Engine / NFS and Python shell execution question

Neil Hodgson nyamatongwe+thunder at gmail.com
Thu Jul 22 19:19:37 EDT 2010


J.B. Brown:

> I believe the source of this problem is that os.popen() or os.system()
> calls spawn subshells which then reference my shell resource files
> (.zshrc, .cshrc, .bashrc, etc.).
> But I don't see an alternative to os.popen{234} or os.system().
> os.exec*() cannot solve my problem, because it transfers execution to
> that program and stops executing the script which called os.exec*().

   Call fork then call exec from the new process. Search the web for
"fork exec" to find examples in C.

   Neil



More information about the Python-list mailing list