Operating System - HP-UX
1837523 Members
3547 Online
110117 Solutions
New Discussion

Desabling numric keys for specfic user.

 
akarayil
Frequent Advisor

Desabling numric keys for specfic user.

Hi experts,

I want to desable 0-9(numeric keys) for specific user.Is there any option to do this action through .profile file.
Waiting for reply. ASAP.
Regards.
8 REPLIES 8
Dennis Handly
Acclaimed Contributor

Re: Desabling numric keys for specfic user.

For a HP-UX server, why would you want to disable numeric keys?
Do you want those keys to be ignored or something else? Unset NUM LOCK?
akarayil
Frequent Advisor

Re: Desabling numric keys for specfic user.

I'll explain the scenario for better understanding.
We use this system for attendance entry.APT s/w is installed for this purpose. At present, employees can swipe the card using bar code reader or they can type the corresponding number using keyboard. Both are connected to the same PS/2 port. I want to disable attendance entry by typing bar code number.
How it can be implemented?
Suraj K Sankari
Honored Contributor

Re: Desabling numric keys for specfic user.

Hi,

Same thing i did, you ask your local hardware ( desktop engg. ) support to disible the nemuric kay from the keyboard itself.

Suraj
Steven Schweda
Honored Contributor

Re: Desabling numric keys for specfic user.

V. Nyga
Honored Contributor

Re: Desabling numric keys for specfic user.

@Steven: ROFL

Well I *think* there's an option to direct keyboard hits to a different sense.
Something like: stty erase "^H" kill "^U" (?)

Maybe you can define 'nothing' to 0-9

Volkmar
*** Say 'Thanks' with Kudos ***

Re: Desabling numric keys for specfic user.

So let me get this straight... your users have workstations where currently they can enter data into an application using either a keyboard or via a barcode reader... you want the users to only use the barcode reader?

So presumably the application is some kind of tty based UNIX terminal application, or you wouldn't be asking about disabling the numeric keys (you posted this in the HPUX forum so I'm assuming the application is running on HPUX, or are you just posting at random?)

Assuming what I guessed above is correct, I doubt playing around with tty settings would achieve the desired result as the barcode reader software probably just simulates key presses anyway, so you'd just break the barcode reader as well.

So I think you're back to the option Steven mnetioned - superglue up the numeric keys!

- Or maybe just disconnect the keyboard?

- Or how about breaking the users fingers with a mallet to stop them typing and then taping the barcode reader to their heads?

Incidentally what do you plan to do when you get a bad barcode?

Yours in (partial) jest,

Duncan

I am an HPE Employee
Accept or Kudo
OldSchool
Honored Contributor

Re: Desabling numric keys for specfic user.

Me .....

Gee, my keyboard has numbers on it along the top row...do I don't need no silly keypad...
Alex Glennie
Honored Contributor

Re: Desabling numric keys for specfic user.

depending on your enviroment .... I can't figure out whether the kb is directly connected a pc or directly to a unix server or workstation and also if the apt s/w is gui or tui based.

you may want to look into

itemap, keymap_ed or xmodmap.