Make client/utils executable + fix line breaks
This commit is contained in:
parent
98cc175810
commit
616ff1501e
0
client/fstream-util-pipe_to_tcp.py
Normal file → Executable file
0
client/fstream-util-pipe_to_tcp.py
Normal file → Executable file
3
client/fstream-util-tcp_to_pipe.py
Normal file → Executable file
3
client/fstream-util-tcp_to_pipe.py
Normal file → Executable file
@ -20,6 +20,7 @@ sp = pUp(s)
|
|||||||
# script start
|
# script start
|
||||||
import socket
|
import socket
|
||||||
bufferSize = 1000
|
bufferSize = 1000
|
||||||
|
unbufferedStdout = os.fdopen(sys.stdout.fileno(),"wb",0) # Make unbuffered stdout
|
||||||
|
|
||||||
def eprint(*args, **kwargs): print(*args, file=sys.stderr, **kwargs)
|
def eprint(*args, **kwargs): print(*args, file=sys.stderr, **kwargs)
|
||||||
|
|
||||||
@ -47,4 +48,4 @@ while True:
|
|||||||
while True:
|
while True:
|
||||||
data = connection.recv(bufferSize)
|
data = connection.recv(bufferSize)
|
||||||
if data == b"": break
|
if data == b"": break
|
||||||
sys.stdout.buffer.write(data)
|
unbufferedStdout.write(data)
|
||||||
|
0
client/fstream.py
Normal file → Executable file
0
client/fstream.py
Normal file → Executable file
Loading…
Reference in New Issue
Block a user