mystery parameter in Unix command SQLPlus

By john.a.wills ·
Tags: Software
I have a Unix shell program to adapt and improve. One line in it runs thus:
sqlplus -s wtailor/****** 1>/tmp/sqlcomp.log <<END
I understand most of this line, but what is that "1" doing there? I cannot find it either in my Unix book or in my SQLPlus book, nor on the Web with my search engine. When I enter the line interactively I get a lot of irrelevant information about usage. That "1" occurs several times in my program, which, by and large, seems to be working correctly, so I am reluctant to remove it, but I would like to know why it is there, especially as the project involves a new SQLPlus line.

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Answers

Collapse -

someone at work knew what it meant

by john.a.wills In reply to mystery parameter in Unix ...

The "1" is a file number, more or less: the main output from SQLPlus, as opposed to error messages, goes to the file mentioned to the right of the ">" - the "1" belongs syntactically with the ">" rather than with the SQLPLus command.

Related Discussions

Related Forums