Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    How to get current process name


    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
    London, UK
    look at argv[0] ?

  3. #3

    Thank you

    thanks very much, it's so simple

  4. $spacer_open

Posting Permissions

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