![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| killing the process | arthi | UNIX for Dummies Questions & Answers | 3 | 06-03-2008 08:57 AM |
| Killing of a process and send a mail if the process doesnot come up within 2 minutes | Prince89 | Shell Programming and Scripting | 1 | 02-15-2008 07:10 PM |
| Reg process of killing | shanshine | SUN Solaris | 6 | 12-05-2007 02:50 PM |
| Killing specific process | benefactr | Shell Programming and Scripting | 6 | 10-25-2007 12:23 PM |
| killing a process | bbhayana | UNIX for Dummies Questions & Answers | 6 | 06-02-2007 07:58 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Quote:
![]() Anyway you could use, just a pointer, you need to refine that Code:
kill -<SIGNAL> `ps -ef | grep <processname> | awk '{print $2}'`
|
|
||||
|
I would say using kill -9 pid is not the better choice in most of the situations,
where the process intended to kill is poorly deprived of doing any sort of cleanup operations. Most of the programs would have implemented ( if not, that cannot be helped ) or rather registered signal handlers and that signals should only be delivered for a safe and clean kill possibly. SIGTERM should have been registered in most of the cases and it would be better to go with that instead of the merciless kill. ![]() |
![]() |
| Bookmarks |
| Tags |
| linux |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|