Ops Center (MOSC)

MOSC Banner

Operational profile scripts fail with "Here Document" section

edited Jan 2, 2014 4:46AM in Ops Center (MOSC) 2 commentsAnswered ✓
Has anyone had an experience with writing Operation Profiles (for OS - basically scripting) where they tried to use a “Here Document”?
I have a while loop with a “Here Document” imbedded in it.
while <condition>
CMD <<EOF
input cmds
EOF
done

This ksh script runs at the cmd line just fine, but if I try to use it as a Operational Plan I get this error message:
“syntax error at ‘\n’”
Then the “input CMDs” generate a series of error messages.

Doug

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