BASH - Check if PID Exists

前端 未结 5 1554
情歌与酒
情歌与酒 2021-02-02 10:43

I want to stall the execution of my BASH script until a process is closed (I have the PID stored in a variable). I\'m thinking

while [PID IS RUNNING]; do
sleep 5         


        
5条回答
提交回复
热议问题