Everytime I have seen this message it was because there was a
. $HOME/.profile
to ensure that the environment was correct and because the script was
run from a cron.
By the way, there was
stty erase ^H
in .profile.
. $HOME/.profile 2>/dev/null
fudged the problem.
HTH,
Stephane Faroult
Oriole Corporation
Voice: +44 (0) 7050-696-269
Fax: +44 (0) 7050-696-449
Performance Tools & Free Scripts
--------------------------------------------------------------
http://www.oriole.com, designed by Oracle DBAs for Oracle DBAs
--------------------------------------------------------------
Steve Sapovits wrote:
>
> SQL*Plus is probably performing terminal specific ioctl settings;
> e.g., setting it in something other than line mode so it can update
> the screen more efficiently, etc.
>
> For scripting SQL, I'd recommend making a move to Perl/DBI. It rocks!
>
> ----
> Steve Sapovits
> Global Sports Interactive
> Work Email: [EMAIL PROTECTED]
> Home Email: [EMAIL PROTECTED]
> Work Phone: 610-491-7087
> Cell: 610-574-7706
> Pager: 877-239-4003
>
> > -----Original Message-----
> > From: Kempf, Reed [SMTP:[EMAIL PROTECTED]]
> > Sent: Wednesday, July 18, 2001 1:41 PM
> > To: Multiple recipients of list ORACLE-L
> > Subject: connecting to sqlplus within a shell script
> >
> > I use a lot of shell scripts (korn mainly) which use connections to
> > sqlplus
> > and always seem to get this error message when the script logs into
> > sqlplus:
> > stty: standard input: Inappropriate ioctl for device
> >
> > Here is my connection procedure within the script: sqlplus -s
> > sitemon/sitemon << END
> >
> > To my knowledge it does not appear to cause any problems with my shell
> > script or output but would really like to know why I am getting it and if
> > there is any recommendations for fixing the problem.
> >
> > OS: Red Hat Linux 6.2
> > ORACLE: 8.1.7 standard edition
> > shell: korn
> >
> > Any help would be appreciated
> >
> > thanks
> >
> > Reed
> >
> > --
>
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Stephane Faroult
INET: [EMAIL PROTECTED]
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
San Diego, California -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).