FAQ
If i have to execute an external program (for example, in the frontend
that i created for convert, from ImageMagick) i have 2 possibilities: i
can call one function between the exec* family, or i can call the
system function: so, which in your opinion is the best? The only
difference that i know (but i may be in error) between these 2
functions is that the former doesn't return (so you have to create a
child process), but the latter returns. Is this the only difference?

Search Discussions

  • Peter Hansen at Jan 2, 2006 at 12:09 pm

    sir_alex wrote:
    If i have to execute an external program (for example, in the frontend
    that i created for convert, from ImageMagick) i have 2 possibilities: i
    can call one function between the exec* family, or i can call the
    system function: so, which in your opinion is the best? The only
    difference that i know (but i may be in error) between these 2
    functions is that the former doesn't return (so you have to create a
    child process), but the latter returns. Is this the only difference?
    Those are options. So is the newer subprocess module, which I believe
    is considered to be a reason to deprecate almost all other ways of doing
    the same thing (os.system, possibly excluded, because of it's sheer
    simplicity).

    -Peter

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppython-list @
categoriespython
postedJan 2, '06 at 11:39a
activeJan 2, '06 at 12:09p
posts2
users2
websitepython.org

2 users in discussion

Peter Hansen: 1 post Sir_alex: 1 post

People

Translate

site design / logo © 2022 Grokbase