Compare commits

..

No commits in common. "master" and "sieve07" have entirely different histories.

View File

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