Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道如何抑制以下输出。
commands will be executed using /bin/ksh job ##########.a at Mon Mar ## ##:##:## 2014
使用“at -k”命令时。我试过像这样使用它
at -k "now + 5 hours" <<! >/dev/null something !
但我不断得到输出。有什么建议么?
at写入标准错误,而不是标准输出。
at
要重定向两者,请使用以下命令:
at -k "now + 5 hours" <<! >/dev/null 2>&1 something !
告诉 shell将2>&1文件描述符 2 (stderr) 重定向到与 fd 1 (stdout) 相同的文件。
2>&1