nohup: ignoring input and appending output to ‘nohup.out’
时间: 2023-09-28 12:08:39 浏览: 172
This message is just a notification that the command you're running with nohup will not be affected by any input you provide and any output generated by the command will be redirected to a file named "nohup.out". This is done to ensure that the command continues to run even if you log out or close the terminal session. You can safely ignore this message and continue using the command as usual.
相关问题
nohup: ignoring input and appending output to 'nohup.out
nohup: ignoring input and appending output to 'nohup.out’这个错误信息表示在使用nohup命令时,输入被忽略并且输出被追加到nohup.out文件中。nohup命令用于在系统后台运行命令,即使你退出终端,程序仍然会继续运行。默认情况下,nohup命令会将输出信息重定向到一个名为nohup.out的文件中,如果当前目录下的nohup.out文件不可写,则会将输出重定向到$HOME/nohup.out文件中。
出现这个错误的原因是在运行nohup命令时没有在命令的末尾添加&符号,导致命令没有在后台运行。解决方法是在需要在后台运行的nohup命令的末尾添加&符号,这样就不会出现该错误了。
nohup: ignoring input and appending output to ‘nohup.out
这个错误信息通常是在使用 `nohup` 命令时出现的。它表示 `nohup` 命令忽略了输入,并将输出追加到名为 `nohup.out` 的文件中。这通常是因为你在后台运行某个命令,希望它在终端关闭后继续运行。
如果你不希望看到这个错误信息,你可以将标准输入重定向到一个文件,如下所示:
```shell
nohup command > output.txt &
```
这样,命令的输出将被重定向到 `output.txt` 文件中,并且你不会再看到 `nohup: ignoring input and appending output to ‘nohup.out’` 的提示信息。
阅读全文
相关推荐














