Operating System - HP-UX
1753464 Members
4953 Online
108794 Solutions
New Discussion юеВ

Re: sript is running but it's stoping when pressing back space kwy.

 
Kanagaraj
Regular Advisor

sript is running but it's stoping when pressing back space kwy.

Dear All,

We are using simple script for collecting information about users and why they are using the particular server.

This is a authentication server for entering/accessing vendors to our network.

Script action:- We have called this script from /etc/profile.

Once given user name and password,User will get prompt to enter his name,location and case id.

as well some matching name(instead of this info if he will press back space key)--> that is stopping script and user getting $(prompt).

We want resolve this bug.Please help me out in this.

2 REPLIES 2
Steven Schweda
Honored Contributor

Re: sript is running but it's stoping when pressing back space kwy.

"stty -a"? HP-UX tends to have some unusual
interpretations of some popular keys.
johnsonpk
Honored Contributor

Re: sript is running but it's stoping when pressing back space kwy.

Hi Kanagaraj,

>>as well some matching name(instead of this info if he will press back space key)--> that is stopping script and user getting $(prompt).

This is because of terminal settings, In you shell backspcae is treated as kill command

executing something like below

#stty erase "^H" kill "^U" intr "^C"

After this you can use ctrl+h for erase , ctrl+U for kill and ctrl+c for interrupt


If you want the permanent setting for your shell edit the .profile or .login of the user and add the above lines


Rgds
Johnson