私の bash スクリプトでは、多くのecho "......." | wall
行を使用して、発生したイベント通知をブロードキャストします。
ただし、コンソールでの結果の出力は扱いにくくなります。
Broadcast Message from root@BIGFOOT
(somewhere) at 16:07 ...
Photo backup started on Mon Oct 7 16:07:55 PHT 2013
Broadcast Message from root@BIGFOOT
(somewhere) at 16:08 ...
Photo backup successfully finished on Mon Oct 7 16:08:05 PHT 2013
Broadcast Message from root@BIGFOOT
(somewhere) at 16:08 ...
You may now unplug the Photo Backup HDD.
代わりに、次のように表示したいと思います。
Broadcast Message from root@BIGFOOT
(somewhere) at 16:07 ...
Photo backup started on Mon Oct 7 16:07:55 PHT 2013
Photo backup successfully finished on Mon Oct 7 16:08:05 PHT 2013
You may now unplug the Photo Backup HDD.
これは、オープンな書き込みチャット セッションに表示されるもののようなものです。
これは可能ですか?その場合、目的のコンソール出力を実現するには、スクリプトをどのように変更すればよいですか?