HP UX How to kill Process | Unix Linux Forums | HP-UX

  Go Back    


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

HP UX How to kill Process

HP-UX


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 02-08-2006
prakashpichika prakashpichika is offline
Registered User
 
Join Date: Feb 2006
Last Activity: 12 February 2006, 11:05 PM EST
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Question HP UX How to kill Process

Hi,

I am Database Admin working on HP UX - last week when Sys admin is away i supposed to kill the fbackup process - which running when the Tape was write protected. My question i need to identify the process of fbackup at the time and i need to kill that one. Please any one could shed some light on this. With the steps and the commands i need to go with.

Thanks in advacne

Prakash
Sponsored Links
    #2  
Old 02-08-2006
gauravgoel gauravgoel is offline
Registered User
 
Join Date: Dec 2005
Last Activity: 9 July 2008, 4:51 AM EDT
Location: India
Posts: 218
Thanks: 0
Thanked 1 Time in 1 Post
use
>ps -eaf|grep processname
to get the pid
then use
>kill -9 pid
to kill the process

I hope this helps
Sponsored Links
    #3  
Old 02-09-2006
prakashpichika prakashpichika is offline
Registered User
 
Join Date: Feb 2006
Last Activity: 12 February 2006, 11:05 PM EST
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
MySQL Thanks

Hello gauravgoel

Thanks a lot for the message - for example if it is a fbackup process

is it like

$ps-ef|grep fbackup
then we get the pid

then

kill -9 pid # right

Thanks
Prakash
    #4  
Old 02-09-2006
gauravgoel gauravgoel is offline
Registered User
 
Join Date: Dec 2005
Last Activity: 9 July 2008, 4:51 AM EDT
Location: India
Posts: 218
Thanks: 0
Thanked 1 Time in 1 Post
Ya prakash,
you are absolutely correct
the PID is the 2nd column from the left in the output of ps-ef|grep processname command


If still any confusion, post back the output of ps -ef|grep name command

Thanks,
Gaurav
Sponsored Links
    #5  
Old 02-09-2006
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon (Administrator Emeritus)
 
Join Date: Aug 2001
Last Activity: 18 April 2014, 1:11 PM EDT
Location: Ashburn, Virginia
Posts: 9,833
Thanks: 42
Thanked 378 Times in 225 Posts
Doing a "kill -9" should be reserved for a last resort. Doing a "kill -9" as the first thing you try is a terrible idea. In the case of fbackup, it is a disaster. Do a "kill -15 pid. Or just a "kill pid". The author of the kill program made -15 the default for a reason. In the case of fbackup, it will catch the -15 and go though a graceful shutdown procedure. fbackup is managing a suite of other processes and these must be shutdown first. And ipc's must be released. Especially a rather large shared memory segment. If you kill fbackup with a -9 that shared memory segment will remain allocated. It can be manually removed with ipcs/ipcrm but if you remove the wrong segment you will screw something else up. A reboot will be the safest way to recover.
Sponsored Links
    #6  
Old 02-10-2006
gauravgoel gauravgoel is offline
Registered User
 
Join Date: Dec 2005
Last Activity: 9 July 2008, 4:51 AM EDT
Location: India
Posts: 218
Thanks: 0
Thanked 1 Time in 1 Post
Hey Prederabo,
Thanks for the info, I always used to do kill -9, but from now onwards will be more careful.

Thanks
Gaurav
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Shell Script to Kill Process(number of process) Unix/Solaris jonnyvic Shell Programming and Scripting 2 12-03-2009 01:44 PM
Kill a process without using kill command sudhamacs Linux 6 10-27-2008 12:36 PM
Kill a process without using kill command sudhamacs Shell Programming and Scripting 0 10-01-2008 05:19 PM
how to start a process and make it sleep for 5 mins and then kill that process shrao Shell Programming and Scripting 6 03-27-2007 12:54 PM
When kill doesnt work, how to kill a process ? VijayHegde UNIX for Advanced & Expert Users 3 05-12-2006 04:24 PM



All times are GMT -4. The time now is 02:14 PM.