Find the answer to your Linux question:
Results 1 to 3 of 3
Hi, I want to get current process name, like we do in Win32, GetCurrentModule, do we have a function like this? It seems we only have getpid function and only ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2004
    Posts
    2

    How to get current process name


    Hi,

    I want to get current process name, like we do in Win32, GetCurrentModule, do we have a function like this? It seems we only have getpid function and only can get process id.

    Anybody can shadow some light on this? Thanksssss.

  2. #2
    Linux Guru
    Join Date
    Apr 2003
    Location
    London, UK
    Posts
    3,284
    look at argv[0] ?

  3. #3
    Just Joined!
    Join Date
    Jun 2004
    Posts
    2

    Thank you

    thanks very much, it's so simple

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •