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

  Unix/Linux 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 Linux or Unix Question    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 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
Unix or Linux 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 Unix and Linux 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
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 Unix and Linux 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 Unix and Linux 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 Unix and Linux 02-09-2006
Perderabo's Unix or Linux Image
Perderabo Perderabo is offline Forum Staff  
Unix Daemon (Administrator Emeritus)
 
Join Date: Aug 2001
Last Activity: 2 March 2015, 11:20 AM EST
Location: Ashburn, Virginia
Posts: 9,931
Thanks: 64
Thanked 444 Times in 263 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 Unix and Linux 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 Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Unix or Linux Image 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 02:44 PM
Kill a process without using kill command sudhamacs Linux 6 10-27-2008 01:36 PM
Kill a process without using kill command sudhamacs Shell Programming and Scripting 0 10-01-2008 06: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 01:54 PM
When kill doesnt work, how to kill a process ? VijayHegde UNIX for Advanced & Expert Users 3 05-12-2006 05:24 PM



All times are GMT -4. The time now is 08:12 PM.