1. 提交任务后台运行(关闭当前shell不影响)
nohup ./script &> output & echo $! > nohup.pid
无需输出日志
nohup ./reference.batch &> /dev/null &
nohup ./reference.batch &> nohup.out &
查看任务号
jobs -l ps -aux | grep -E 'lrz|USER'
ps -aux | grep -E 'lrz|USER'
nohup ./script &> output & echo $! > nohup.pid
无需输出日志
nohup ./reference.batch &> /dev/null &
nohup ./reference.batch &> nohup.out &
查看任务号
jobs -l ps -aux | grep -E 'lrz|USER'
ps -aux | grep -E 'lrz|USER'