- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: kill with nohup
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2007 02:51 PM
тАО11-28-2007 02:51 PM
thx
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2007 02:57 PM
тАО11-28-2007 02:57 PM
Re: kill with nohup
>>>I would like to use kill with nohup function
what does this mean.Do you want to put a job in background and then kill ot or what????
Kapil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2007 03:03 PM
тАО11-28-2007 03:03 PM
Solutionhttp://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1180435
For that to have worked, you would have to first collect the PIDs. Then use nohup of another script passed the PIDs, to protect the kill from its parent shell dying.
>for example "kill -8", can advise how can I combine these function?
What do you mean by a kill level?
Kill only takes a signal and a list of PIDs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2007 05:11 PM
тАО11-28-2007 05:11 PM
Re: kill with nohup
What do you mean by a kill level?
Kill only takes a signal and a list of PIDs.
do you mean I should use "nohup kill -8"
to prevent it kill myself ?
thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2007 05:36 PM
тАО11-28-2007 05:36 PM
Re: kill with nohup
I see the man page , there is command "kill -s SIGTERM " , is it used for waiting all process is killed before shutting down ? thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-29-2007 08:24 AM
тАО11-29-2007 08:24 AM
Re: kill with nohup
to prevent it kill myself?
That's even easier that what I thought. The kill will complete, even if the script dies.
Of course anything after that, may not be done.
Also you don't want to use kill -8, SIGFPE.
>there is command "kill -s SIGTERM", is it used for waiting all process is killed before shutting down?
Kill -s SIGTERM the same as the default. It tells the processes to terminate when they are able.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-29-2007 01:17 PM
тАО11-29-2007 01:17 PM
Re: kill with nohup
I still not clear the difference between "kill -s SIGTERM -8" and "nohup kill -8" , what I want is make sure they can kill all process , even when it its self login process , so before it die , it should do the kill all process .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-29-2007 01:51 PM
тАО11-29-2007 01:51 PM
Re: kill with nohup
Where are you getting -8 from? Is 8 your process group ID? If not remove it from your thoughts.
>what I want is make sure they can kill all process, even when it its self login process, so before it die
Basically adding nohup should do it. Because it creates a new process that shouldn't be in the list of processes to kill. And if the parent dies, nohup should preserve the kill process.
There is no difference between "kill -s SIGTERM" and "kill".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-29-2007 02:37 PM
тАО11-29-2007 02:37 PM
Re: kill with nohup
Where are you getting -8 from? Is 8 your process group ID? If not remove it from your thoughts. -->
I know kill have -1 , -2 , -3 ... for diferent propose , I just check that -8 is not vaild .
Thx for your help .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-29-2007 03:28 PM
тАО11-29-2007 03:28 PM
Re: kill with nohup
Are you talking about signals or PIDs?
You should not normally use kill -8 or SIGFPE.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-29-2007 05:32 PM
тАО11-29-2007 05:32 PM
Re: kill with nohup
I am talking the signal .
I think kill -3 will do in my case.
thx.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-30-2007 06:56 AM
тАО11-30-2007 06:56 AM
Re: kill with nohup
You should take the default. SIGQUIT will create core files for each process.