Managing Databases using Enterprise Manager (MOSC)

MOSC Banner

OEM JOB running an OS command script fails

Hi There. On OEM 13.5 I am trying to get a OS Command Job to execute a Linux script on a server. If I am on the server itself and run the script it works fine but from within the job I get the following error:-

line 4: set: -A: invalid option

set: usage: set [-abefhkmnptuvxBCHP] [-o option-name] [--] [arg ...]

I do not know why it works from the server but OEM gives an error from within the same script. Any assistance would be greatly appreciated.

And this is the code from within the script:-


set -A myarray $AR_PARM

incSummary=${myarray[8]}

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center