¡@

Home 

python Programming Glossary: child.py

execlp() in python

http://stackoverflow.com/questions/13439938/execlp-in-python

I do not quite understand os.execlp 'python' 'python' 'child.py' #other args# In an interactive shell like bash I know I can.. In an interactive shell like bash I know I can type python child.py #args# to ask python interpreter to run child.py with args... python child.py #args# to ask python interpreter to run child.py with args. Why are there TWO 'python' in the execlp function..

When using os.execlp, why `python` need `python` as argv[0]

http://stackoverflow.com/questions/14174366/when-using-os-execlp-why-python-need-python-as-argv0

0 The codes are like this os.execlp 'python' 'python' 'child.py' #other args# # this works os.execlp 'python' 'child.py' #other.. 'child.py' #other args# # this works os.execlp 'python' 'child.py' #other args# # this doesn't work I read this question execlp.. sys.argv arguments to the program. However if I run python child.py 1 2 3 and the sys.argv of this process would be child.py 1 2..

Run child processes as different user from a long running process

http://stackoverflow.com/questions/1770209/run-child-processes-as-different-user-from-a-long-running-process

17 16 26 inner rw r r 1 hale staff 1836 May 17 15 25 test child.py Become non root in a child process... root tmp demo python test.. non root in a child process... root tmp demo python test child.py hale inner bin bash norc uid gid 0 0 starting ' bin bash' '..