Bash hide "killed"

Viewed 1034

I cannot see to hide the "killed" output from my script. Please help.

killall -9 $SCRIPT

I have tried:

killall -9 $SCRIPT >/dev/null 2>&1

and everyone redirect combination it seems. Thanks for the help.

* UPDATE *

The main script cannot run in the background. It outputs a bunch on information to the user while running. Thanks for the input though. Any other ideas?

Here is the desired output

HEV Terminated
administrator@HEV-DEV:~/hev-1.2.7$

Here is the current output:

HEV Terminated
Killed
administrator@HEV-DEV:~/hev-1.2.7$

4 Answers

Try killall -q,--quiet don't print complaints

killall -q -9 $SCRIPT
Related