remove the pipe to enable proper EOF socket shutdown
Some checks failed
MVS Upload & Execute / upload-and-run (push) Failing after 15s

This commit is contained in:
Gregory Gauthier 2025-11-17 13:07:50 +00:00
parent 542e58c3f3
commit f585cd3cb4

View File

@ -47,7 +47,8 @@ def upload_source(local_file, dataset_name, member_name, mvshost=MVSHOST):
try:
# Use cat to read the file and pipe to netcat
cmd = f"cat {tmpfile_path} | nc -w1 {mvshost} {RDRPORT}"
# cmd = f"cat {tmpfile_path} | nc -w3 {mvshost} {RDRPORT}"
cmd = f"nc -w 5 {mvshost} {RDRPORT} < {tmpfile_path}"
subprocess.run(cmd, shell=True, check=True)
print(f"Uploaded {local_file} to {dataset_name}({member_name})")
return 0
@ -66,7 +67,8 @@ def submit_jcl(job, mvshost="oldcomputernerd.com"):
print(f"JCL file {subjcl} not found")
return 1
subcmd = f"cat {subjcl} | nc -w1 {mvshost} {RDRPORT}"
subcmd = f"nc -w 5 {mvshost} {RDRPORT} < {subjcl}"
# subcmd = f"cat {subjcl} | nc -w3 {mvshost} {RDRPORT}"
try:
subprocess.run(subcmd, shell=True, check=True)