Solved: redirect standard error? I got this script that puts out an error message and I understand why, but I would prefer to NOT have it go to the screen. How can I redirect in KSH the standard error to /dev/null
Here is my script minus header and config info.
for spid in $(ps -ef | grep "facet "$1 | awk {'print $2'})
do
kill -9 $spid
done
echo All Processes for port $1 have been killed
echo You should be able to login to Dimensions now
I see my two echo requests and they are good, but I get a error since I am killing parent processes, some of the children are gone when it comes to killing them, and I get a error message that reads
kill: 71134: 0403-003 the specified process does not exist
How can I make that go to /dev/null so as not to confuse our users who might use this kill script?
Thanks in advance for any help on this one. OK the race is on will I solve it first? |