ESP WOB failed with Invalid shell error
search cancel

ESP WOB failed with Invalid shell error

book

Article ID: 25882

calendar_today

Updated On:

Products

ESP Workload Automation

Issue/Introduction

Agent wob failed with “Invalid shell” error:

Example:

HPUX_JOB JOB1.HP 
   RUN TODAY
   AGENT HP_AGENT
   SCRIPTNAME "/<path>/<dir>/test_run.pl"
   ENVAR PWD=/<path>/<dirr>/pwd
   EXITCODE 0 SUCCESS
ENDJOB

 

 

Environment

Component: ESP Workload Automation, Workload Automation Agents
Release:   12.0

Cause

When using SCRIPTNAME "/<path>/<dir>/test_run.pl", the agent doesn't know Perl (.pl) as a valid shell.

Resolution

Update the agentparm.txt in Workload Agent as follows: 

oscomponent.validshell=/<path>/bin/sh,/bin/csh,/bin/ksh,/usr/bin/ksh,/bin/sh

Or

Use a wrapper script in a Unix Shell