Make client/utils executable + fix line breaks

This commit is contained in:
Fierelier 2023-11-01 02:17:39 +01:00
parent 98cc175810
commit 616ff1501e
3 changed files with 145 additions and 144 deletions

0
client/fstream-util-pipe_to_tcp.py Normal file → Executable file
View File

3
client/fstream-util-tcp_to_pipe.py Normal file → Executable file
View File

@ -20,6 +20,7 @@ sp = pUp(s)
# script start
import socket
bufferSize = 1000
unbufferedStdout = os.fdopen(sys.stdout.fileno(),"wb",0) # Make unbuffered stdout
def eprint(*args, **kwargs): print(*args, file=sys.stderr, **kwargs)
@ -47,4 +48,4 @@ while True:
while True:
data = connection.recv(bufferSize)
if data == b"": break
sys.stdout.buffer.write(data)
unbufferedStdout.write(data)

0
client/fstream.py Normal file → Executable file
View File