how to continue run script after tail -f command

前端 未结 6 870
攒了一身酷
攒了一身酷 2021-01-18 09:55

I have the following script:

tail -f nohup.out
echo 5

When I press Ctrl+C on tail -f, the script stops r

6条回答
  •  甜味超标
    2021-01-18 10:26

    In bash end the line with a single ampersand to run the command in the background in an async way

    tail -f nohup.out &
    

提交回复
热议问题