![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 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 03:10 PM |
| Reg process of killing | shanshine | SUN Solaris | 6 | 12-05-2007 10:50 AM |
| Killing specific process | benefactr | Shell Programming and Scripting | 6 | 10-25-2007 09:23 AM |
| killing a process | bbhayana | UNIX for Dummies Questions & Answers | 6 | 06-02-2007 04:58 AM |
| killing a process pid | jo calamine | UNIX for Advanced & Expert Users | 16 | 12-04-2006 03:43 AM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi,
First, I am running a scipt.While the script is running I realize that I dont want the script to be run so I am killing the script externally.Before the process gets terminated or killed it should delete all the temporary files created by the script.How to do this?Can anyone help me? Thanks in advance. |
| Forum Sponsor | ||
|
|
|
|||
|
Best you give the process a chance to do this and kill it with a "normal" kill or kill -15 (ie. SIGTERM) which is the same.
Do not use a kill -9, because it will be so hard, that it will have no chance to clean up anything. You might have IPCs left and such stuff. kill -9 should onl y be used, if it still lives on after you have sent a normal kill to it. And if it's still there after a kill -9, you got a zombie and should reboot next time you get a chance to. |