This script was written to monitor a program whose process life was only a few seconds. It runs forever and only outputs that SQL which is generated by the program as it’s running.
To use it, simply replace MyProgram with your program’s name.
while true; dosqlplus -S system/oracle <