Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What is pkill command and what is p

Status
Not open for further replies.

SYBSA

Technical User
Jun 2, 2003
5
AE
What is pkill command and what is pkill -HUP option do and what effects could it have over the running applications, could it stop the listeners of some applications that are already running???
 
pkill is related to the pgrep utility. If, for example, you typed pkill -HUP inetd, it would search for a running process with that name and sent it a SIGHUP signal (in this example inetd would then re-read its configuration file).

It replaces having to type ps -ef | grep inetd to find the process ID, and then type kill -HUP 123.

So the answer to your second question is probably yes, depending on what processes the SIGHUP was sent to.

Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top