Nohup 使用简令
使用方法:nohup command(终端机器后台运行),linux自带。
步骤:
1、cd 到执行文件的目录;
2、nohup command,命令开始运行,并会生成nohup.out;
3、执行结果与原本执行command的结果一样;
4、想看运行情况cd到执行目录,tail -n 50 nohup nohup.out
如:nohup sh compile.sh
nohup python test.py
执行后会在执行目录生成nohup.out
cd 到目录nohup.out所在目录
执行 tail -n 50 nohup nohup.out
就可以看到最新的50行的执行情况

浙公网安备 33010602011771号