The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-01-2006
jo calamine jo calamine is offline
Registered User
  
 

Join Date: Sep 2006
Posts: 24
process pid

What option is used with kill to cause the server to reread its config file.

Last edited by jo calamine; 12-01-2006 at 11:37 PM..
  #2 (permalink)  
Old 12-01-2006
vino's Avatar
vino vino is offline Forum Staff  
Supporter (in vino veritas)
  
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,796
If you want to kill the server, Control + C usually helps. A kill command is not the perfect solution.

Anyway, ps aux will give you the process id running in the system.

Pick the pid of your choice and issue a kill -9 pid
  #3 (permalink)  
Old 12-01-2006
jo calamine jo calamine is offline
Registered User
  
 

Join Date: Sep 2006
Posts: 24
is there a way to find the pid # and issue the kill with one command line?

strange ?'s i know, this is for a class.
  #4 (permalink)  
Old 12-01-2006
matrixmadhan matrixmadhan is offline Forum Advisor  
Technorati Master
  
 

Join Date: Mar 2005
Location: leaf node in B+ tree
Posts: 2,952
Quote:
Originally Posted by jo calamine
is there a way to find the pid # and issue the kill with one command line?

strange ?'s i know, this is for a class.
This had been answered many times. Please use the SEARCH facility.

Anyway you could use,

just a pointer, you need to refine that
Code:
kill -<SIGNAL> `ps -ef | grep <processname> | awk '{print $2}'`
  #5 (permalink)  
Old 12-01-2006
jo calamine jo calamine is offline
Registered User
  
 

Join Date: Sep 2006
Posts: 24
keep getting
arg must be a process of job id
  #6 (permalink)  
Old 12-01-2006
matrixmadhan matrixmadhan is offline Forum Advisor  
Technorati Master
  
 

Join Date: Mar 2005
Location: leaf node in B+ tree
Posts: 2,952
Quote:
Originally Posted by jo calamine
keep getting
arg must be a process of job id
Can you please post, what is the exact command that you had run and the error message you get?
  #7 (permalink)  
Old 12-01-2006
matrixmadhan matrixmadhan is offline Forum Advisor  
Technorati Master
  
 

Join Date: Mar 2005
Location: leaf node in B+ tree
Posts: 2,952
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.
Closed Thread

Bookmarks

Tags
linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:07 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0