(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