- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- stty: not a typewriter
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
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-14-2000 01:27 PM
тАО09-14-2000 01:27 PM
Been so long since I've had to deal with this and I cannot find anything docs for it.
What am I missing?
Many thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-14-2000 01:37 PM
тАО09-14-2000 01:37 PM
SolutionNot a typewriter
"You can get this message from many sources. Usually, the message means you executed a program that expects to deal with a terminal and you have forced the program to deal with a different device." This is from document #HPUXERR01 (General HP-UX system error messages).
In some of my scripts I've defined a boolean as follows:
typeset INTERACTOK=0 && [ -t -eq 0 ] && INTERACTOK=1
Then I can conditionally execute code based on whether I started from a terminal (or not, as in cron).
Hope this helps. Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-14-2000 01:40 PM
тАО09-14-2000 01:40 PM
Re: stty: not a typewriter
Oh, one more. If your cron entry sources your profile for your script, then you will get this nasty complaint. The profile is full of stty goodies. I suspect that's closer to your problem.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-14-2000 01:41 PM
тАО09-14-2000 01:41 PM
Re: stty: not a typewriter
Your 'su - oracle ' is running the profile scripts for user oracle.
These include a call to 'ttytype' which tries to determine the terminal type and 'stty'.
Because these are being run from cron or a script not associated with a terminal, both commands complain.
Try just doing 'su oracle -c
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-14-2000 01:48 PM
тАО09-14-2000 01:48 PM
Re: stty: not a typewriter
You could edit the ~oracle/.profile and perform a test such as:
if [ tty -s ] # are we logging in with a terminal?
and bypass the commands that would need terminal interaction.
man tty
cheers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-14-2000 01:51 PM
тАО09-14-2000 01:51 PM
Re: stty: not a typewriter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2000 12:39 AM
тАО09-15-2000 12:39 AM
Re: stty: not a typewriter
We have experienced the same problem. If you use this in a cron, maybe you can add the nohup command before yours to avoid the call to a tty.
Let me know if it has helped you.
Francois H.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2000 01:38 AM
тАО09-15-2000 01:38 AM
Re: stty: not a typewriter
The solution is to add 2>&- after the command su - oracle -c "...".
Try this redirection, it should solve your problem.
Victor N.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2000 01:53 AM
тАО09-15-2000 01:53 AM
Re: stty: not a typewriter
The scripts dbshut and dbstart are setting up the environment already.
There is no need to source .profile; ie do not use the - with su
su oracle -c "/opt/oracle/product/8.0.5/bin/dbstart"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2000 02:27 AM
тАО09-15-2000 02:27 AM
Re: stty: not a typewriter
Andy and John are right. I use to have this messages in my /etc/rc.log files due from oracle startup scripts. Just change (su - oracle_sid -c database) to (su oracle_sid - database) in your /sbin/init.d file for oracle database startup/stop script.