So I have been running this job for a while now and on some computers I get an exit code 127, many times they start as that then will swap to a 0 others just run without issue. Any ideas of what is wrong with this script that would be causing this issue? I pulled the script out for privacy purposes but its pretty simple just pulls some data out of a database and throws it into a file for other jobs to use.
if {(name of (operating system) as string as lowercase contains "linux")}
//Shell to Action Script Conversion Utility
delete __appendfile
delete /tmp/StopSaleQuery.sh
delete /tmp/StopSaleQuery.txt
createfile until EOF
#!/bin/bash
query="Query is redacted"
EOF
copy __createfile /tmp/StopSaleQuery.sh
delete __appendfile
appendfile cd /tmp
appendfile chmod +x StopSaleQuery.sh
appendfile ./StopSaleQuery.sh
//modify appendfile to allow execution
wait /bin/sh -c "chmod 555 {(client folder of current site as string) & "/__appendfile"}"
//execute shell script as written
wait /bin/sh -c "{(client folder of current site as string) & "/__appendfile"}"
delete __appendfile
delete /tmp/StopSaleQuery.sh