0
これは基本的なクライアントサーバーソケットプログラムです。クライアントはファイルをサーバーに送信し、サーバーはgeditを使用してファイルを開きます。テキストファイルがgeditで開いているかどうかを確認する方法
p = subprocess.Popen("gedit file", shell=True, stdout=subprocess.PIPE,stderr=subprocess.STDOUT)
私はコードが
while file_open in gedit:
wait()
after file_closed and saved
send to client
私は推測
[Python:ファイルがロックされています]の可能な複製(http://stackoverflow.com/questions/13371444/python-check-file-is-locked) – CarlosCarucce