Not knowing Oracle it's difficult to relate, but I would say you will need to pipe it to a shell script, with the shell script expecting it as a $1 parameter.
e.g. oracle_app |shell_script
IBM Certified Confused - MQSeries
IBM Certified Flabbergasted - AIX 5 pSeries System Administration
MS Certified Windblows Rebooter