Pid

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • User At

    Pid

    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
    +++++++++++++++ +++++++++++++++
  • Lutz Horn

    #2
    Re: Pid


    "User At" <User@invalid.d omain> writes:
    [color=blue]
    > How can I get a pid of a proccess and get output something similar
    > to 'pidof'?[/color]

    import os
    print os.getpid()

    Lutz
    --
    JavaScrypt: Browser-Based Cryptography Tools

    Comment

    Working...