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 08:30 AM
read file and output message happyv Shell Programming and Scripting 12 01-24-2007 09:57 PM
output string message to pipe princelinux High Level Programming 3 08-18-2006 03:09 AM
scp message MuellerUrs SUN Solaris 2 06-17-2005 06:32 AM
message lo-lp-kl UNIX for Dummies Questions & Answers 2 11-23-2004 07:21 PM

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 09-25-2005
ust ust is offline
Registered User
  
 

Join Date: Feb 2005
Posts: 98
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
  #2 (permalink)  
Old 09-25-2005
zazzybob's Avatar
zazzybob zazzybob is offline Forum Advisor  
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
Closed Thread

Bookmarks

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 02:57 PM.


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