why can't we find netcat?
Some checks failed
MVS Upload & Execute / upload-and-run (push) Failing after 5s
Some checks failed
MVS Upload & Execute / upload-and-run (push) Failing after 5s
This commit is contained in:
parent
11acc2ae2a
commit
df358cfb4b
@ -58,7 +58,7 @@ jobs:
|
|||||||
echo "=== Debug: Starting upload/submit ==="
|
echo "=== Debug: Starting upload/submit ==="
|
||||||
echo "File: ${{ steps.files.outputs.file }}"
|
echo "File: ${{ steps.files.outputs.file }}"
|
||||||
echo $(/usr/bin/stat ${{ steps.files.outputs.file }})
|
echo $(/usr/bin/stat ${{ steps.files.outputs.file }})
|
||||||
echo $(/usr/bin/nc --version)
|
echo $(nc -h)
|
||||||
echo "Member: ${{ steps.files.outputs.member }}"
|
echo "Member: ${{ steps.files.outputs.member }}"
|
||||||
python3 mvs_job.py "${{ steps.files.outputs.file }}" "@05054.SRCLIB.C" "${{ steps.files.outputs.member }}" "COMPILE"
|
python3 mvs_job.py "${{ steps.files.outputs.file }}" "@05054.SRCLIB.C" "${{ steps.files.outputs.member }}" "COMPILE"
|
||||||
echo "=== Debug: Upload/submit complete ==="
|
echo "=== Debug: Upload/submit complete ==="
|
||||||
|
@ -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} | /usr/bin/nc -w1 {mvshost} {RDRPORT}"
|
cmd = f"cat {tmpfile_path} | 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
|
||||||
@ -66,7 +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"cat {subjcl} | /usr/bin/nc -w1 {mvshost} {RDRPORT}"
|
subcmd = f"cat {subjcl} | nc -w1 {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