![]() If SIGTERM fails, try SIGHUP, which is stonger medicine: kill -HUP pid. Using kill by itself sends SIGTERM, which you should try first as it allows the program to properly clean up after itself. You might have to use your judgment as to which of the matches needs to be killed, or you could use top instead. Kill pid where pid is the Process ID of the program. The first field of each line of output is a number which represents the Process ID of the program matched by grep (you can safely ignore the last one, which represents grep itself. This should return a line of output that looks something like this: $ ps ax | grep firefoxĢ222 ? S 0:00 /bin/sh /usr/lib/firefox-3.6.9/firefoxĢ231 ? Sl 514:36 /usr/lib/firefox-3.6.9/firefox-binģ0290 pts/2 S+ 0:00 grep -color=auto firefox Open another terminal and run ps ax | grep foo where foo is the name of the unresponsive program.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |