![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Exiting eXceed window kills my process | shantaputi | UNIX for Dummies Questions & Answers | 2 | 05-31-2007 08:27 AM |
| how to know that a perticular process is started!!! | zing_foru | UNIX for Advanced & Expert Users | 11 | 05-19-2007 07:04 AM |
| Process started on console | zverzak | UNIX for Dummies Questions & Answers | 2 | 12-07-2006 01:33 AM |
| PID of process started in background?? | stilllooking | Shell Programming and Scripting | 2 | 11-16-2004 12:47 AM |
| exit from telnet kills orbix process | edgarm | UNIX for Dummies Questions & Answers | 1 | 11-27-2000 11:18 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to get rid of message when script kills process it started?
When I run the following script I get the following error message whcih I would like to suppress when the kill is issued:
./kill.sh: line 13: 31854 Killed nc -l -p 12345 Script: #!/bin/bash echo running nc in the background nc -l -p 12345 & PID=$! echo nc pid: $PID sleep 1 echo about to kill pid: $PID kill -9 $PID echo kill rc: $? exit * * * Anyone know how I can suppress that message? Thanks in advance... Chris |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Try:
disown $PID before the kill. |
||||
| Google The UNIX and Linux Forums |