have to program to get process ID?
Hello everyone,
On Linux platform, if I want to get current process (for example, a shell script), are there any ways (for example, a command) to get the process ID without programming. regards, George |
"man ps" or (h)top
Try this: ps -e | grep name_process |
Thank you BiThian,
Quote:
regards, George |
pgrep and pkill are also worth looking into. From the manpage:
Quote:
|
i usually do a
`ps aux` |
pid=$$
and some more text to avoid 10 char min limit in post; sigh .... |
Quote:
and that $$ - is valid only for the current working shell |
All times are GMT -5. The time now is 02:20 AM. |