- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Scripting issue where it wants a tty
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
тАО03-08-2002 10:06 AM
тАО03-08-2002 10:06 AM
Re: Scripting issue where it wants a tty
Oops, I'm stupid, I meant to say so that isatty(0) returns a non-0 result.
Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-08-2002 11:24 AM
тАО03-08-2002 11:24 AM
Re: Scripting issue where it wants a tty
I dont like to use /dev/console ( it could interact with syslogd). But i had do it some times using /dev/tty0p1 or similars.
New tecnichs is the use of a x-terminal device instead. You can open a window and just redirect to that /dev/... pts?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-08-2002 11:55 AM
тАО03-08-2002 11:55 AM
Re: Scripting issue where it wants a tty
"it is a 3rd party binary".
Well I would expect a real binary to speak clearly to me if something is wrong, if it is well coded.
Conclusion: The message does NOT come from the program, but the program calls an operatingsystem-command via c-call "system" or so (stty, tset ....)
If you are lucky, "strings programname" gives you a clue what it is calling. May be you can patch this name with a hexeditor to call a program of yours, that does what the program needs, but fakes the tty flags....
No idea if this helps.
Volker
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-08-2002 12:16 PM
тАО03-08-2002 12:16 PM
Re: Scripting issue where it wants a tty
Volker: "if it is well coded". That's a good one. The code needs help which the vendor admitted. strings actually shows that "Not a tty" is inside the binary, that means they're doing their own checking. I see no external calls to other programs either.
Clay, you're on the right track. I don't have time or patience for plan B. I have gotten this to work using expect. I have to make my code much more complex for my issue, but this is probably the route I'll take. Thank you all for your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2002 12:00 AM
тАО03-11-2002 12:00 AM
Re: Scripting issue where it wants a tty
Standard files:
standard-input file_despcriptor 0
standard-output file_despcriptor 1
standard-error file_despcriptor 2
my_program 0/dev/tty0p1 2>&1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2002 09:41 AM
тАО03-11-2002 09:41 AM
Re: Scripting issue where it wants a tty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-13-2002 11:20 AM
тАО03-13-2002 11:20 AM
Re: Scripting issue where it wants a tty
To get rid of this problem:
if tty -s
then
PS1=.....
fi
All the tty related stuff should between then .. fi.
This should solve the problem.
Peter.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-16-2009 05:02 AM
тАО04-16-2009 05:02 AM
Re: Scripting issue where it wants a tty
- « Previous
- Next »