nohup命令 后台运行

    xiaoxiao2026-05-27  4

    后台运行命令:

    nohup Command [ Arg ... ] [ & ]

    如果使用nohup命令提交作业,那么在缺省情况下该作业的所有输出都被重定向到一个名为nohup.out的文件中,除非另外指定了输出文件:

    nohup command > myout.file 2>&1 & 其中:

    0 – stdin (standard input),1 – stdout (standard output),2 – stderr (standard error) ; 2>&1是将标准错误(2)重定向到标准输出(&1),标准输出(&1)再被重定向输入到myout.file文件中。

    转载请注明原文地址: https://ju.6miu.com/read-1310113.html
    最新回复(0)