Facing issue in jboss patch

Hi Team,

I’m attempting to upgrade a JBoss application using a BigFix out-of-the-box fixlet. The only modification I made was to invoke the patching process using the jossown user.

Here is the modified command I’m using:

wait su jossown -c "{parameter "patch_tmp"}/run.sh" >> "{parameter "patch_tmp"}/run.log"

However, the command is failing with exit code 126. When I manually log in as the jossown user and execute the same run.sh script, it runs successfully.

Additionally, the log file generated (run.log) is blank.

Is there something I might be missing? Any guidance on what could be causing this behavior would be greatly appreciated.

Does the jossown user have read and write access to the patch_tmp directory (write access to create the output log) ?