remove the pipe to enable proper EOF socket shutdown
Some checks failed
MVS Upload & Execute / upload-and-run (push) Failing after 15s
Some checks failed
MVS Upload & Execute / upload-and-run (push) Failing after 15s
This commit is contained in:
parent
542e58c3f3
commit
f585cd3cb4
@ -47,7 +47,8 @@ def upload_source(local_file, dataset_name, member_name, mvshost=MVSHOST):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
# Use cat to read the file and pipe to netcat
|
# 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)
|
subprocess.run(cmd, shell=True, check=True)
|
||||||
print(f"Uploaded {local_file} to {dataset_name}({member_name})")
|
print(f"Uploaded {local_file} to {dataset_name}({member_name})")
|
||||||
return 0
|
return 0
|
||||||
@ -66,7 +67,8 @@ def submit_jcl(job, mvshost="oldcomputernerd.com"):
|
|||||||
print(f"JCL file {subjcl} not found")
|
print(f"JCL file {subjcl} not found")
|
||||||
return 1
|
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:
|
try:
|
||||||
subprocess.run(subcmd, shell=True, check=True)
|
subprocess.run(subcmd, shell=True, check=True)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user