why can't we find netcat?
Some checks failed
MVS Upload & Execute / upload-and-run (push) Failing after 5s

This commit is contained in:
Greg Gauthier 2025-10-19 14:49:08 +01:00
parent fb06bcda8a
commit 28d21721bc

View File

@ -47,7 +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 -w1 {mvshost} {RDRPORT}" cmd = f"cat {tmpfile_path} | /usr/bin/nc -w1 {mvshost} {RDRPORT}"
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