美文网首页
linux持久运行a命令

linux持久运行a命令

作者: 尤格萨隆 | 来源:发表于2020-05-25 09:59 被阅读0次

    记录日志

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

    不记录日志

    nohup a >/dev/null 2>&1 & exit
    

    相关文章

      网友评论

          本文标题:linux持久运行a命令

          本文链接:https://www.haomeiwen.com/subject/wybeahtx.html