FAQ

Rob Williscroft wrote:
Valentine Kouznetsov wrote in news:ec6d1a16.0308080828.367f6b54
@posting.google.com:


Hi,
simple question, how to execute command in current shell, not in
subshell?
execl() will execute a new program in the current process, replacing the
current process. It obviously cannot return back to Python. See
http://www.python.org/doc/2.2/lib/os-process.html .

spawnl() will execute a new program in a new process, but it does not
invoke a new *shell*. It allows you to completely specify the
environment, so this may also do what you want. Unlike execl() you can
return to Python after the subprocess is complete.

Rich

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 4 of 5 | next ›
Discussion Overview
grouppython-list @
categoriespython
postedAug 8, '03 at 4:28p
activeAug 8, '03 at 8:31p
posts5
users4
websitepython.org

People

Translate

site design / logo © 2022 Grokbase