"EPACtrl.sh" got error message(A test command parameter is not valid.) on HP-UX using POSIX shell.

Document ID : KB000069456
Last Modified Date : 15/05/2018
Show Technical Document Details


When "./epagent/bin/EPACtrl.sh" ran using POSIX shell on HP-UX, the following error message appears.

./EPACtrl.sh[67]: ==: A test command parameter is not valid.
./EPACtrl.sh[83]: ==: A test command parameter is not valid.

How can EPAgent launch on HP-UX using POSIX?

As for the reason, POSIX does not support test command "==".
You can change this shell from "==" to "=".

This problem will be FIX in 10.4.

Installed EPAgent of 10.7 and opened EPACtrl.sh and found that the test command "==" was used. 
if [ "X`sysctl -n hw.cpu64bit_capable`" == "X1" ] 

if [ "X$pid" == "X" ] ; then 

This will cause errors on POSIX shell on HP-UX. 
Change the test command "==" to "=". 

Additional Information:
The error did not appear on RHEL. This appears only in POSIX shell.




Please Update This Required Field