HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- problem with stty and remsh
Operating System - HP-UX
1832757
Members
3197
Online
110045
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
07-01-2001 03:54 AM
07-01-2001 03:54 AM
Hi
i m trying to run a short script that i worte
echo " please give you name "
stty -echo
read name
stty echo
clear
echo " your name is $name "
when i m running it on local server - o. k
but when i try to run it with remsh getting
stty: : Operation not supported
didnt found any reference about this error with stty or remsh .
can anybody also give me another solution ?
i m trying to run a short script that i worte
echo " please give you name "
stty -echo
read name
stty echo
clear
echo " your name is $name "
when i m running it on local server - o. k
but when i try to run it with remsh getting
stty: : Operation not supported
didnt found any reference about this error with stty or remsh .
can anybody also give me another solution ?
love computers
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2001 06:03 AM
07-01-2001 06:03 AM
Solution
Hi Eran,
Im very busy at the moment Im sorry, there is a difference between executing from local: you have TERM set. when you execute remsh, i think it doesnt read users .profile and so no tty...
I would investigate this point if I were you:
/home/vbe> remsh octant "env"
_=/usr/bin/env
PATH=/usr/bin:/usr/ccs/bin:/usr/bin/X11:/usr/contrib/bin:/usr/local/bin:
LOGNAME=vbe
SHELL=/usr/bin/ksh
HOME=/home/berridge
PWD=/home/berridge
TZ=MET-1METDST
caph:/home/vbe>
octant:/home/berridge $ env
_=/usr/bin/env
MANPATH=/usr/share/man/%L:/usr/share/man:/usr/contrib/man/%L:/usr/contrib/man:/usr/local/man/%
L:/usr/local/man:/opt/upgrade/share/man/%L:/opt/upgrade/share/man:/usr/dt/share/man:/opt/pd/sh
are/man/%L:/opt/pd/share/man:/opt/ignite/share/man/%L:/opt/ignite/share/man:/opt/pred/share/ma
n/%L:/opt/pred/share/man:/opt/audio/share/man:/opt/blinklink/share/man:/opt/ansic/share/man/%L
:/opt/ansic/share/man:/opt/langtools/share/man/%L:/opt/langtools/share/man:/opt/imake/man:/opt
/hparray/share/man/%L:/opt/hparray/share/man:/opt/hpnp//man:/opt/samba/man/%L:/opt/samba/man:/
opt/resmon/share/man
PATH=.:/usr/bin:/opt/ansic/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/nettladm/bin:/opt/fc/bin:/op
t/fcms/bin:/opt/upgrade/bin:/opt/pd/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/pred/bin:/opt/l
angtools/bin:/opt/imake/bin:/opt/hparray/bin:/opt/sas:/var/opt/sas/ocstat/bin:/opt/prod/menu:/
opt/prod/utl:/opt/hpnp//bin:/opt/samba/bin:/opt/ignite/bin:/opt/resmon/bin
COLUMNS=94
EDITOR=vi
HISTFILE=/home/berridge/.sh_history
LOGNAME=vbe
ERASE=^H
PS1=octant:$PWD \$
SHELL=/usr/bin/ksh
HISTORY=2048
HISTSIZE=4098
TMOUT=7200
HOME=/home/berridge
FCEDIT=/usr/bin/vi
TERM=hpterm
PWD=/home/berridge
TZ=MET-1METDST
ENV=/home/berridge/.kshrc
LINES=46
A__z=-5TMOUT
I named your script stty_test01 on octant.
This is my output:
caph:/home/vbe> remsh octant "./stty_test01"
stty: : Unknown error
please give you name
victor
stty: : Unknown error
your name is victor
caph:/home/vbe>
If I find some time this evening I will give a look at your problem if you havent found a solution...
Best regards
Victor
Im very busy at the moment Im sorry, there is a difference between executing from local: you have TERM set. when you execute remsh, i think it doesnt read users .profile and so no tty...
I would investigate this point if I were you:
/home/vbe> remsh octant "env"
_=/usr/bin/env
PATH=/usr/bin:/usr/ccs/bin:/usr/bin/X11:/usr/contrib/bin:/usr/local/bin:
LOGNAME=vbe
SHELL=/usr/bin/ksh
HOME=/home/berridge
PWD=/home/berridge
TZ=MET-1METDST
caph:/home/vbe>
octant:/home/berridge $ env
_=/usr/bin/env
MANPATH=/usr/share/man/%L:/usr/share/man:/usr/contrib/man/%L:/usr/contrib/man:/usr/local/man/%
L:/usr/local/man:/opt/upgrade/share/man/%L:/opt/upgrade/share/man:/usr/dt/share/man:/opt/pd/sh
are/man/%L:/opt/pd/share/man:/opt/ignite/share/man/%L:/opt/ignite/share/man:/opt/pred/share/ma
n/%L:/opt/pred/share/man:/opt/audio/share/man:/opt/blinklink/share/man:/opt/ansic/share/man/%L
:/opt/ansic/share/man:/opt/langtools/share/man/%L:/opt/langtools/share/man:/opt/imake/man:/opt
/hparray/share/man/%L:/opt/hparray/share/man:/opt/hpnp//man:/opt/samba/man/%L:/opt/samba/man:/
opt/resmon/share/man
PATH=.:/usr/bin:/opt/ansic/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/nettladm/bin:/opt/fc/bin:/op
t/fcms/bin:/opt/upgrade/bin:/opt/pd/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/pred/bin:/opt/l
angtools/bin:/opt/imake/bin:/opt/hparray/bin:/opt/sas:/var/opt/sas/ocstat/bin:/opt/prod/menu:/
opt/prod/utl:/opt/hpnp//bin:/opt/samba/bin:/opt/ignite/bin:/opt/resmon/bin
COLUMNS=94
EDITOR=vi
HISTFILE=/home/berridge/.sh_history
LOGNAME=vbe
ERASE=^H
PS1=octant:$PWD \$
SHELL=/usr/bin/ksh
HISTORY=2048
HISTSIZE=4098
TMOUT=7200
HOME=/home/berridge
FCEDIT=/usr/bin/vi
TERM=hpterm
PWD=/home/berridge
TZ=MET-1METDST
ENV=/home/berridge/.kshrc
LINES=46
A__z=-5TMOUT
I named your script stty_test01 on octant.
This is my output:
caph:/home/vbe> remsh octant "./stty_test01"
stty: : Unknown error
please give you name
victor
stty: : Unknown error
your name is victor
caph:/home/vbe>
If I find some time this evening I will give a look at your problem if you havent found a solution...
Best regards
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2001 07:36 AM
07-01-2001 07:36 AM
Re: problem with stty and remsh
Hi,
stty command is to disaplay or set options for the device that is your current standard input. When you run your script remotely, via remsh, your standard input is on the local machine where you are working, whereas stty is run on the remote machine. This explains the error you observe.
I think, a simple way is to ask for the user name locally and then to pass this name to the remote machine to check if an user can run what you would like to be run or not. Exactly as the standard services like telnet , ft and so on do.
Hope this helps.
Rgds.
stty command is to disaplay or set options for the device that is your current standard input. When you run your script remotely, via remsh, your standard input is on the local machine where you are working, whereas stty is run on the remote machine. This explains the error you observe.
I think, a simple way is to ask for the user name locally and then to pass this name to the remote machine to check if an user can run what you would like to be run or not. Exactly as the standard services like telnet , ft and so on do.
Hope this helps.
Rgds.
Permanent training makes master
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP