![atコマンドを使用したときに表示される警告メッセージを削除する[重複]](https://linux33.com/image/93545/at%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%9F%E3%81%A8%E3%81%8D%E3%81%AB%E8%A1%A8%E7%A4%BA%E3%81%95%E3%82%8C%E3%82%8B%E8%AD%A6%E5%91%8A%E3%83%A1%E3%83%83%E3%82%BB%E3%83%BC%E3%82%B8%E3%82%92%E5%89%8A%E9%99%A4%E3%81%99%E3%82%8B%5B%E9%87%8D%E8%A4%87%5D.png)
私はbash設定ファイルでコマンドを使用してat
時間をエコーして時間を思い出させますが、今コマンドラインを開くと、次の迷惑な警告がたくさん点滅します。
warning: commands will be executed using /bin/sh
job 241 at Thu Sep 1 00:00:00 2016
warning: commands will be executed using /bin/sh
job 242 at Thu Sep 1 01:00:00 2016
warning: commands will be executed using /bin/sh
job 243 at Thu Sep 1 02:00:00 2016
warning: commands will be executed using /bin/sh
job 244 at Thu Sep 1 03:00:00 2016
warning: commands will be executed using /bin/sh
job 245 at Thu Sep 1 04:00:00 2016
warning: commands will be executed using /bin/sh
job 246 at Thu Sep 1 05:00:00 2016
warning: commands will be executed using /bin/sh
job 247 at Thu Sep 1 06:00:00 2016
warning: commands will be executed using /bin/sh
job 248 at Thu Sep 1 07:00:00 2016
warning: commands will be executed using /bin/sh
job 249 at Thu Sep 1 08:00:00 2016
warning: commands will be executed using /bin/sh
job 250 at Thu Sep 1 09:00:00 2016
warning: commands will be executed using /bin/sh
job 251 at Wed Aug 31 10:00:00 2016
warning: commands will be executed using /bin/sh
job 252 at Wed Aug 31 11:00:00 2016
warning: commands will be executed using /bin/sh
job 253 at Wed Aug 31 12:00:00 2016
warning: commands will be executed using /bin/sh
job 254 at Wed Aug 31 13:00:00 2016
warning: commands will be executed using /bin/sh
job 255 at Wed Aug 31 14:00:00 2016
warning: commands will be executed using /bin/sh
job 256 at Wed Aug 31 15:00:00 2016
warning: commands will be executed using /bin/sh
job 257 at Wed Aug 31 16:00:00 2016
warning: commands will be executed using /bin/sh
job 258 at Wed Aug 31 17:00:00 2016
warning: commands will be executed using /bin/sh
job 259 at Wed Aug 31 18:00:00 2016
warning: commands will be executed using /bin/sh
job 260 at Wed Aug 31 19:00:00 2016
warning: commands will be executed using /bin/sh
job 261 at Wed Aug 31 20:00:00 2016
warning: commands will be executed using /bin/sh
job 262 at Wed Aug 31 21:00:00 2016
warning: commands will be executed using /bin/sh
job 263 at Wed Aug 31 22:00:00 2016
warning: commands will be executed using /bin/sh
job 264 at Wed Aug 31 23:00:00 2016
私が実行したいコマンドは例です。
echo "midnight" | at 00:00
これらの警告をどのように削除できますか?
at
注:これは、「コマンドを実行するために/ bin / shを使用するという警告が表示されるのはなぜですか?他のシェルが必要な場合はどうなりますか?」という質問とは異なります。警告を削除する方法とシェルに関する情報を知りたくありません。
答え1
echo "midnight" | at 00:00 2>/dev/null