linux持久运行a命令

2020-05-25  本文已影响0人  尤格萨隆

记录日志

touch my.log
chmod u+w my.log
nohup a > my.log 2>my.log & exit

不记录日志

nohup a >/dev/null 2>&1 & exit
上一篇下一篇

猜你喜欢

热点阅读