FAQ
How can I get a pid of a proccess and get output something similar to
'pidof'?

++++++++++++++++++++++++++++++
/sbin/pidof /usr/sbin/httpd
5802 5135 5131 2584 2581 2509
++++++++++++++++++++++++++++++

Search Discussions

  • Lutz Horn at Jun 18, 2004 at 2:15 pm

    "User At" <User at invalid.domain> writes:

    How can I get a pid of a proccess and get output something similar
    to 'pidof'?
    import os
    print os.getpid()

    Lutz
    --
    JavaScrypt: Browser-Based Cryptography Tools
    http://www.fourmilab.ch/javascrypt/

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppython-list @
categoriespython
postedJun 18, '04 at 12:11p
activeJun 18, '04 at 2:15p
posts2
users2
websitepython.org

2 users in discussion

Lutz Horn: 1 post User At: 1 post

People

Translate

site design / logo © 2022 Grokbase