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.
他の処理を行った後に Xvnc を起動する bash スクリプトがあり、xinetd サービスから起動されます。ただし、スクリプトはテキストを stdout および stderr に間接的に出力し、接続しているクライアントに送り返します。
スクリプトからの出力を無視し、Xvnc に接続を引き継がせるように xinetd に指示する方法はありますか?
(Xvnc は、標準出力を使用して xinetd と通信するのではなく、何らかの方法で xinetd からソケットを引き継ぐと思いますか?)
スクリプトの先頭に次の行を追加します。
exec >/dev/null exec 2>/dev/null