![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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
|
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
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 |
||||
| Google The UNIX and Linux Forums |