让脚本在后台运行的方式

一、nohup

nohup /test.sh &>/dev/null &
之后可以通过执行jobs命令来查看后台运行的程序

二、

sh /test.sh &

 

posted @ 2019-04-04 13:19  New_Journey  阅读(3515)  评论(0编辑  收藏  举报