Hi,
I'm scripting a generic login script to oracle via sqlplus. I am having problems getting output from stdin in sqlplus but everything else is logged.
sqlplus username/password@instance | tee logfile
logfile contains all database output but nothing I typed into the command line whilst in the application. I guess that stdin is not being captured by the tee. I considered redirecting stdin to stdout 0>&1 for example but it doesn't like that much.
Any ideas?
I'm scripting a generic login script to oracle via sqlplus. I am having problems getting output from stdin in sqlplus but everything else is logged.
sqlplus username/password@instance | tee logfile
logfile contains all database output but nothing I typed into the command line whilst in the application. I guess that stdin is not being captured by the tee. I considered redirecting stdin to stdout 0>&1 for example but it doesn't like that much.
Any ideas?