Got "Invalid shell" error for agent wob submitted by CA Workload Automation ESP Edition

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

Problem: 

Agent wob below failed with “Invalid shell” error:

HPUX_JOB JOB1.HP 

   RUN TODAY

   AGENT HP_AGENT

   SCRIPTNAME "/home/dir1/daily_run.pl"

   ENVAR PWD=/home/dir1/pwd

   EXITCODE 0 SUCCESS

ENDJOB

 

Environment:  

 ESP 11.4 Z/OS

 Agent 11.3 UNIX

 

Cause: 

 When use SCRIPTNAME "/home/dir1/daily_run.pl", the agent doesn't know Perl (.pl) as a valid shell.

 

Resolution:

You can add below to the agentparm.txt file on this line:

oscomponent.validshell=/usr/bin/sh,/bin/csh,/bin/ksh,/usr/bin/ksh,/bin/sh

 

Or use a wrapper script in a Unix shell.

 

Additional Information:

N/A