The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to make a line BLINKING in output and also how to increase font size in output mail2sant Shell Programming and Scripting 3 04-14-2008 04:30 AM
read file and output message happyv Shell Programming and Scripting 12 01-24-2007 06:57 PM
output string message to pipe princelinux High Level Programming 3 08-17-2006 11:09 PM
scp message MuellerUrs SUN Solaris 2 06-17-2005 02:32 AM
message lo-lp-kl UNIX for Dummies Questions & Answers 2 11-23-2004 04:21 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 09-25-2005
ust ust is offline
Registered User
 

Join Date: Feb 2005
Posts: 95
Output the message

I kill the process eg. kill 87332 , there is no output will be shown on the shell , ( if there is a error , it will be shown the error message eg. no such pid etc ) , if I want to see the message that let me know the system has actually kill the message , is it possible ? thx
Reply With Quote
Forum Sponsor
  #2  
Old 09-25-2005
zazzybob's Avatar
Registered Geek
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
Unix is the silent type. It assumes that you don't want to be festooned with "Are you sure?" dialogues and confirmation messages.

But you could do something like....

kill -9 <my_pid> && echo "Sent the thing a kill -9!"

Obviously - sometimes a straight kill won't kill a hung process (anyway, the "kill" command name is misleading - it should be send_signal or something - it doesn't implicitly mean you're trying to kill a process... anyway...).

Maybe write a script.... attempt to kill nicely.... grep through ps output to see if process still exists.... if it does, kill forcefully.... if it doesn't, exit.... etc, etc....

Cheers
ZB
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 07:30 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0