So this is a basic client server socket program.The client sends the file to the server and the server opens it using gedit.
p = subprocess.Popen("gedit file", shell=True, stdout=subprocess.PIPE,stderr=subprocess.STDOUT)
I want the code to work like
while file_open in gedit:
wait()
after file_closed and saved
send to client