79753678

Date: 2025-09-02 15:33:13
Score: 3.5
Natty:
Report link

You can't just redirect the output because it's not the command kill that print the message.
It's your bash job controller informing you that a process is terminate in background.

Quick answer, one way handle it is to wait after kill an redirect is stderr :

kill $PID
wait $! 2> /dev/null

You can find more information here : Is there a way to make bash job control quiet?

Reasons:
  • Blacklisted phrase (1): Is there a way
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: apouchet