Yes, there is a way to do this. My testing was on a Windows server, but you can take this idea and adapt it for your server’s OS and your own preferences about any message returned by the script. Here’s what I did:
1. Created a Windows batch script named “pkgcheck.bat”. This script checks to see if any parameters were passed to it, and if so the script ends successfully, if not the script ends with an error code. Like this:
if .%1==. exit /b 1
2. I opened the properties of the HRefresh udp within my project and created a pre-link UDP with the following program line:
If the pre-link UDP ends with an error code the HRefresh process fails and no files are checked out.