- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- stty: tcgetattr: A specified file does not support...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2001 04:14 AM
тАО09-06-2001 04:14 AM
stty: tcgetattr: A specified file does not support the ioctl system call.
when I execute the following
su - oracle "-c sqlplus system@RECP /tmp/RECP/usuarisRECP.sql" << EOF
EOF
I get the message:
stty: tcgetattr: A specified file does not support the ioctl system call.
Any idea??.
Thanks in advance.
Alex.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2001 04:23 AM
тАО09-06-2001 04:23 AM
Re: stty: tcgetattr: A specified file does not support the ioctl system call.
So take a look at this thread, I think it might help you,
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x1300a22d6d27d5118fef0090279cd0f9,00.html
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2001 04:36 AM
тАО09-06-2001 04:36 AM
Re: stty: tcgetattr: A specified file does not support the ioctl system call.
I'm not trying to mask a password into a C program. What I do is a script with te SU command:
su - oracle "-c sqlplus system@RECP @/tmp/RECP/usuarisRECP.sql" << EOF
manager
EOF
and I give the password (manager) for the sqlplus command. I do this to avoid showing the password if anyone writes pas -ef.
Thanks.
Alex.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-09-2002 07:59 AM
тАО04-09-2002 07:59 AM
Re: stty: tcgetattr: A specified file does not support the ioctl system call.
The cause was an entry in the glogin.sql file.
There was a
!stty erase ^H
hiding in there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-09-2002 08:07 AM
тАО04-09-2002 08:07 AM
Re: stty: tcgetattr: A specified file does not support the ioctl system call.
Your problem is that your are sourcing oracle .profile with your su - oracle. You can fix this in two ways:
1) Continue to use su - oracle ... BUT enclose any interactive commands such as tset, tabs, stty ... with
if [ -t 0 ]
then
stty ..
tabs
fi
This will skip over those commands if non in an interactive environment.
2) Preferred
Create a file, e.g. /usr/local/bin/oraenv.sh
and in it set and export all your needed ORACLE variables and PATHS. DO NOT put an exit statement in this file. You then source /usr/local/bin/oraenv.sh like this
. /usr/local/bin/oraenv.sh
in both Oracle's .profile and in whatever command you execute. Your command then becomes su oracle .... (no dash). This way interactive sessions and non-interactive sessions always have the same environment.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-09-2002 08:29 AM
тАО04-09-2002 08:29 AM
Re: stty: tcgetattr: A specified file does not support the ioctl system call.
Try this I think you are putting a -c after the paranthesis:
su - oracle -c " sqlplus system@RECP /tmp/RECP/usuarisRECP.sql" << EOF
Manoj Srivastava