Action script - is there a way to mask a command

(imported topic written by aldridged)

I have a bit of code wirtten by one of the dba’s to gather some ASM data out of oracle for me.

I try to put it into actionscript >> but the code has a “exit” command in it, So actionscript is seeing this as a actionscript command

and not as a content of the file i am trying to create

EG

createfile until ENDOFFILE

#!/bin/sh

sqlplus -s /nolog <<eof

conn / as sysasm

set echo off

set feedback off

col path for a20

select path,OS_MB,TOTAL_MB,FREE_MB,COLD_USED_MB from v$asm_disk;

exit >>>>>>>>>>>>>>>>>>> this is the issue line

eof

ENDOFFILE

delete ora_asm_info.sh // delete if already exists

move __createfile /tmp/ora_asm_info.sh

wait chmod 755 /tmp/ora_asm_info.sh

Is there anyway i can tell actionscript to not use that action and to just leave it as normal text and add it to my script i am trying to get it to create for me ?

I know i can deliver the script as a file, but there must be a better way.

thanks… Dan

(imported comment written by MattPeterson)

Dan, we use createfile to create scripts with exit commands all the time and never have had issues. Have you actually tried running your action? I know when creating the task IEM might highlight, or try to autocomplete, commands it knows, but once you run the action it will know to add that line to __createfile instead of actually exiting.

If this is happening when running an action then I would suggestion you open a pmr.

(imported comment written by aldridged)

Matt,

I have not yet. As it highlighted as you described. i thought it would fail .

Will have a go… Thanks

(imported comment written by aldridged)

Matt, Yep worked as you said. Thanks…Dan