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.
シグナルモジュールを見てきました。シグナルハンドラーのインストールとアラームの設定には問題ないようですが、たとえば、次の方法で別のプロセスにシグナルを送信しています
os.system('kill -s SIGUSR2 8269')
プロセスが別のホスト マシン上にある場合、これを行う簡単な方法はありますか?
os.kill()ローカルプロセスの場合は、paramikoおよびkillリモートシステムの場合はコマンド。
os.kill()
kill