Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Redirecting STDIN, STDOUT, STDERR to a logfile via tee

Status
Not open for further replies.

sapatos

Programmer
Jan 20, 2006
57
AU
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.

sqlplus username/password@instance 0>&1 | tee logfile

Any ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top