If you code the stty command like the following -

[ -t 1 ] && stty erase 

It works both interactively & via cron jobs.

HTH & YMMV!

Erik Williams wrote:
> 
> Are you doing an su before running SQL plus? I have run into problems in my
> .profile script when su-ing before running SQLPlus in a script. In my case,
> I was trying to run STTY to change my erase key in the .profile. Just a
> thought.
> 
> Erik
> 
> > -----Original Message-----
> > From: Steve Sapovits [SMTP:[EMAIL PROTECTED]]
> > Sent: Wednesday, July 18, 2001 1:52 PM
> > To:   Multiple recipients of list ORACLE-L
> > Subject:      RE: connecting to sqlplus within a shell script
> >
> >
> > 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: Kempf, Reed
> > >   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).
> > --
> > Please see the official ORACLE-L FAQ: http://www.orafaq.com
> > --
> > Author: Steve Sapovits
> >   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).
> 
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Erik Williams
>   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).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Charlie Mengler
  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).

Reply via email to