Inconsistent/Missing "shell" settings in Actions for Unix

Document ID : KB000087405
Last Modified Date : 14/04/2018
Show Technical Document Details
Issue:
Error Message :
N/A

The shell of several actions is set to either -sh, -bash or nothing at all. This can cause problems, especially for actions that invoke java, as JAVA_HOME might not be set globally (which is usually the case) and the java/bin-directory might not be in the global PATH-variable (which is often the case). 

As /bin/bash should be present on almost all systems, our recommendation is to consistently set the shell of all Unix jobs in actions to -bash.

Investigation

In the Action "File Create Snapshot" (PACKAGES/PCK.AUTOMIC_FILESYSTEM/ACTIONS/FILE/FILESYSTEM/PCK.AUTOMIC_FILESYSTEM.PUB.ACTION.SNAPSHOT_CREATE in package PCK.AUTOMIC_FILESYSTEM version 1.1.0):
  1. PCK.AUTOMIC_BOND.PRV.JOB.SNAPSHOT.CREATE_GUID@UNIX sets shell to "-sh" 
  2. PCK.AUTOMIC_FILESYSTEM.PRV.JOB.CREATE_SNAPSHOT@UNIX does not set shell at all (both are part of the same action, both are executed on the same system)
Environment:
OS Version: N/A
Cause:
Cause type:
By design
Root Cause: This works as design and there is no fix for this. Please kindly help to contribute your ideas in http://ideas.automic.com
Resolution:
N/A

Fix Status: No Fix

Additional Information:
Workaround :
N/A