SURUN Job fails with error - syntax error near unexpected token `('
search cancel

SURUN Job fails with error - syntax error near unexpected token `('

book

Article ID: 412233

calendar_today

Updated On:

Products

CA Automic Applications Manager (AM)

Issue/Introduction

When running an SURUN Job using the SURUNP Program Type, if the Job prompt value contains parenthesis encompassed by double quotes, the below or similar error may be seen in the output file. Note the example prompt value is "Test (C)"

in SURUNP
/appwrx_home/c/SURUN -user /home/test/test_script.sh "Test (C)"
SURUN memid:12780
sh: -c: line 0: syntax error near unexpected token `('
sh: -c: line 0: `"home/test/test_script.sh" ""Test" "(C)"" '
 Child: Job return = 1
 Child:Done.
Exiting with su job error code[1].
error is 1

Running a non SURUN Job with the same parameter works as expected.

Cause

Cause by a mishandling of prompts within Applications Manager SURUNP script

Resolution

A fix will be included in Applications Manager version 9.6.2 and/or 9.7