shell command to find a process id and attach to it?
Posted
by lallous
on Stack Overflow
See other posts from Stack Overflow
or by lallous
Published on 2010-05-14T10:21:20Z
Indexed on
2010/05/14
10:24 UTC
Read the original article
Hit count: 237
Hello
I want to attach to a running process using 'ddd', what I manually do is:
# ps -ax | grep PROCESS_NAME
Then I get a list and the pid, then I type:
# ddd PROCESS_NAME THE_PID
Is there is a way to type just one command directly?
Remark: When I type ps -ax | grep PROCESS_NAME <- grep will match both the process and grep command line itself.
© Stack Overflow or respective owner