(imported comment written by jeko1791)
Sorry, that would be helpful, huh? Here’s the full action script:
prefetch urt_extract_ibm.pl sha1:9268ee6e1c2af6655ff988638a91260bf7f7529e size:40877 http://MYIP:52311/Uploads/Utilities/urt_extract.pl
prefetch urt_extract_ibm.ksh sha1:17dd0e512246e087718091d0823992d62892259b size:44542 http://MYIP:52311/Uploads/Utilities/urt_extract.ksh
if {NOT exists folder “__URT” of parent folder of client folder of current site}
wait mkdir -p “{pathname of parent folder of client folder of current site}/__URT”
endif
delete __appendfile
delete run_URT.sh
appendfile rm -f /tmp/*.mef3
appendfile cd {pathname of client folder of current site}/__Download
appendfile chmod 500 urt_extract.pl
appendfile ./urt_extract.pl -customer SoT
- appendfile mv “{pathname of file whose (name of it ends with “.mef3”) of folder “/tmp”}” {pathname of parent folder of client}/__BESData/__URT
move __appendfile run_URT.sh
wait sh ./run_URT.sh
if {NOT exists file whose (name of it ends with “.mef3” AND modification time of it > now - 1*minute) of folder (pathname of parent folder of client folder of current site & “/__URT”)}
delete __appendfile
delete run_URT.sh
appendfile rm -f /tmp/*.mef3
appendfile cd {pathname of client folder of current site}/__Download
appendfile chmod 500 urt_extract.ksh
appendfile ./urt_extract.ksh -c SoT
appendfile mv “{pathname of file whose (name of it ends with “.mef3”) of folder “/tmp”}” {pathname of parent folder of client}/__BESData/__URT
move __appendfile run_URT.sh
wait sh ./run_URT.sh
endif
When it fails it just says Relevance Substitution Error in the log next to the line above, that I put a *** before. I’ve also tried taking this line out entirely on the shell script and putting the :
wait mv xxx yyy
command at the end after the script runs to create the output file. This doesn’t generate a failure in the logs, and the Action completes successfully, but the output file never gets created. In fact, if I try to execute the run_URT.sh script manually as root, it tells me I don’t have permission to run it. I have to “chmod 500 run_URT.sh” to be able to execute it. I think Bigfix is running into this as well when it tries to run the “wait sh ./run_URT/sh” command above, so the output file is never being created.
Am I creating the script wrong? Not sure why it would not be executable to me.