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.
「スリープ状態に入る」、「ウィンドウを開く」、「ウィンドウを閉じる」などのcronコマンドを作成し、引数-displayを使用してxmessageでポップアウトしました。通常、 -display :0.0 で目的の結果が得られますが、複数の X スクリーン (:0.1、:0.2..) を使用する場合があるため、これらのメッセージを見逃すことがあります。
ユーザーがその瞬間にそのセッションを見ているように、どの X セッションがアクティブであるかを調べる方法はありますか?
コマンドwho -t、または単にwを試してください
これらのコマンドは、コンソールと X サーバーに関する情報を提供します。