Ops Center (MOSC)

MOSC Banner

OPS Cli command script

edited Mar 14, 2016 5:00AM in Ops Center (MOSC) 1 commentAnswered

Hello,

I´d like to run cli scripts or OneLiners  more dynamical with variables.

Is there any chance to set Variables and use them in OC Scripts?

Example:

export ASSET=blubber

export USER=laber

export PW=`cat /export/home/laber/.pw`

oc -e 'connect -h _EC_  -u ${USER} -p@${PW} -a ; setenv output_format=parsable ; setenv parsable_text_separator=:; gear.list -f ${ASSET}'

Best Regards

Martin

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