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.
バックグラウンドでいくつかの ssh コマンドを実行しています。Triggered-via-ssh コマンドの実行が終了しても、適切なバックグラウンド ssh プロセスが終了せず、その ps -l 出力で WCHAN が「finish」、「state」が T と表示されます。では、トリガー プロセスが終了しないのはなぜで、WCHAN の「終了」値は何を意味するのでしょうか。
どうもありがとう
状態「T」は、プロセスが中断されたことを意味します。バックグラウンドで実行したと言ったので、これは tty 入力の読み取り (または stty tostop が設定されている場合は tty 出力の書き込み) が原因である可能性があります。プログラムが入力を必要としない場合は、ssh -n オプションを使用してこれを回避します。