Starting a "stopped" process
This one bugged me for a long time. Gnome will have applications which occasionally lock up or "crash".
Scenario:
- User1 came back from lunch and, after unlocking the session, finds the mail application giving a blank window.
- Usually, User1 will click the "window close" icon to force quit the application.
- However, User1 had an important message that was still in a composition window.
- User 1 needs it VERY badly.
I was going to force a core dump. Then, I would look through the core for text from the composition.
Then I found out about the "p" commands:
pstop
prun
ptree
pstack
(etc.)
** I decided to try the "prun" command and that worked out nicely.
bash-3.00$ top -b -U user1 100 | grep stop
3571 processes:3369 sleeping, 37 running, 124 zombie, 37 stopped, 4 on cpu
31300 user1 10 59 0 190M 142M stop 15:24 0.00% mozilla-bin
31389 user1 13 59 0 104M 17M stop 0:32 0.00% java_vm
bash-3.00$ prun 31389 31300
bash-3.00$ top -b -U user1 100 | grep stop
3553 processes:3366 sleeping, 22 running, 123 zombie, 35 stopped, 7 on cpu