Kill infinite process piped to other script running background if the background task get terminated

后端 未结 0 1174
谎友^
谎友^ 2020-12-13 01:29

Searched couple hours here, could not find suitable working variant.

Example:

#!/bin/sh

sleep infinity | ./some_script_that_could_be_killed_inexpected         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题