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 !
しかし、私は出力を取得し続けます。助言がありますか?
atstdout ではなく、stderr に書き込みます。
at
両方をリダイレクトするには、次を使用します。
at -k "now + 5 hours" <<! >/dev/null 2>&1 something !
これ2>&1は、ファイル記述子 2 (stderr) を fd 1 (stdout) と同じファイルにリダイレクトするようにシェルに指示します。
2>&1