Compare commits
No commits in common. "master" and "sieve07" have entirely different histories.
@ -47,8 +47,7 @@ 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 -w3 {mvshost} {RDRPORT}"
|
cmd = f"cat {tmpfile_path} | nc -w1 {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
|
||||||
@ -67,8 +66,7 @@ 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"nc -w 5 {mvshost} {RDRPORT} < {subjcl}"
|
subcmd = f"cat {subjcl} | nc -w1 {mvshost} {RDRPORT}"
|
||||||
# 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