LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Getting pid of a process!! (https://www.linuxquestions.org/questions/programming-9/getting-pid-of-a-process-360124/)

jlliagre 09-09-2005 01:50 AM

No, but I'm sure there are tons of /proc programming examples available on the net, try google ...

vishamr2000 09-09-2005 08:46 PM

Ok..many thx to all who have contributed to this thread, esp jlliagre

Warm regards,
Visham

Lunar 03-02-2015 08:52 PM

Quote:

Originally Posted by vishamr2000 (Post 1835511)
Hi to all,

I would like to know if there's a way to get the pid of a process by using it's name. Also, how can I know of the processes that are running and their pids?

Warm regards,
Visham

# pidof (my go to)
# pstree
# top

and I like the first reply: ps ax | grep [any part of the process name]

Landis.

genss 03-02-2015 09:55 PM

Quote:

Originally Posted by Lunar (Post 5325979)
# pidof (my go to)
# pstree
# top

and I like the first reply: ps ax | grep [any part of the process name]

Landis.

quick tip: read the date stamp and the rest of the thread :)

jpollard 03-12-2015 07:12 AM

What is the problem you trying to solve?

There appears to be no need for a kernel module for this as

http://linux.die.net/man/3/libipq

Appears to solve most of what you are describing.


All times are GMT -5. The time now is 07:51 PM.