linux在后台运行程序

 nohup command > log.dn 2>&1   # 运行输出保存在log.dn文件中,可以通过tail -f log.dn实时查看。

 nohup command >/dev/null 2>&1   # doesn't create nohup.out

 nohup command >/dev/null 2>&1 & # runs in background, still doesn't create nohup.out

发表评论