Shell: how to run two scripts A and B in parallel and stop B when A is over

前端 未结 0 1863
傲寒
傲寒 2021-01-12 16:02

Suppose I have a shell script A.sh whose content is:

sleep 2
echo "A: 2s"
sleep 2
echo "A: 4s"
sleep 2
echo "A: 6s"         


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