- 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
Forums
Discussions
Discussions
Discussions
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
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
11-03-2000 03:47 AM
11-03-2000 03:47 AM
stty: : Not a typewriter
I think i must set a variable in the script, but i don't know which one
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2000 03:51 AM
11-03-2000 03:51 AM
Re: stty: : Not a typewriter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2000 05:07 AM
11-03-2000 05:07 AM
Re: stty: : Not a typewriter
If tty -s...
Regards
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2000 05:38 AM
11-03-2000 05:38 AM
Re: stty: : Not a typewriter
Problem Description
I want to know how to build an ftest to see if there
is some kind of interactive script. Can you tell me how?
Also, I'm having a problem starting a job to execute the .profile of a user.
How do I make only interactive commands execute during an interactive
shell?
Configuration Info
Operating System - HP-UX
Version -9.04
Hardware System -867S
Solution
The correct way to check if the shell is interactive (at least in ksh)
is by checking $-.
case $- in
*i*) echo interactive ;;
*) echo not interactive ;;
esac
You could test $TERM to see if it had been set. If you are running
something from cron, it would not have a value.
KEYWORD LIST
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2000 06:55 AM
11-03-2000 06:55 AM
Re: stty: : Not a typewriter
case $- in
*i*) eval `ttytype -s`;;
*) eval `ttytype -s -a`;;
esac
case $TERM in
ansi| 262* |7009* | 23[89]* |264* ) TERM=hp2392a;;
ansi| vt100 | vt220 | VT100 |VT220 ) TERM=dtterm;;
esac
For the script line, e.g. su - oracle -c dbstart, it should now read su -oracle -c dbstart 2>&-
This will help.