How to execute host registration for Java Agent API when ksh is not installed on the computer.

Document ID : KB000047582
Last Modified Date : 14/02/2018
Show Technical Document Details

Introduction: 

When using Pure Java Agent API, to register a host for a 5.x-type custom pure Java Agent, you must use smreghost.sh on UNIX, not smreghost executable, as documented.

Question: 

By default, the script 'smreghost.sh' on UNIX is executed by /bin/ksh. The script file contains the below line at the beginning of the file.

#!/bin/ksh

 

If 'ksh' is not available on my computer, how do you execute the script in order to register a trusted host?

Environment:  

CA Single Sign-On SDK 12.5x

OS: Unix/Linux

Answer: 

If 'ksh' is not available on your computer, you may use 'bash' instead in this case as the shell script content is compatible with bash.

 

Make a backup copy, and change the header line in the file as following (ksh -> bash).

#!/bin/bash

Additional Information:

Agent API Guidance for Java