control headless box with key presses




Hi. I have a "headless" Linux box (i.e. without a monitor and a
keyboard) which is working fine. Now I would like to be able to hook
up a USB numpad and be able to execute some scripts by pressing some
keys, e.g. pressing key "1" would execute "Script_1" and so on.

Hooking up the USB numpad and loading the appropriate USB kernel
modules should be no problem, but how do I do that pressing a key
executes a command? "Usually" a tty driver would control the keyboard,
but I don't even want to log in, I just want to plug the keyboard in,
press a key and a command gets executed.

Thank you for any ideas.

-- Manuel Panea

.



Relevant Pages

  • Re: control headless box with key presses
    ... Manuel Panea wrote: ... up a USB numpad and be able to execute some scripts by pressing some ... Hooking up the USB numpad and loading the appropriate USB kernel ... "Usually" a tty driver would control the keyboard, ...
    (comp.os.linux.setup)
  • Re: vi horizontal split screen
    ... Command line recall and edit, which I had on DOS, was worth the price of admission by itself. ... The script language was designed to look like C for the benefit of C programmers working on *nix, but you still needed to know Bourne syntax, because all the scripts that controlled Unix itself were in the Bourne shell language. ... Emacs is not it. ... The default Emacs keystrokes have the same basic characteristic as the default vi keystrokes and the default WordStar command set: they are keyboard independent. ...
    (comp.editors)
  • Re: Windows xp screen freezing...randomly
    ... Enquire, plan and execute ... After it finished booting plug in the keyboard ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Windows xp screen freezing...randomly
    ... Enquire, plan and execute ... After it finished booting plug in the keyboard ...
    (microsoft.public.windowsxp.help_and_support)
  • RE: Problem Overriding Word menu items using VSTO 2005... Shortcuts no
    ... The code that you've implemented essentially allows you to hook the click ... event of the Paste button, however, using the CTRL+V keyboard shortcut to ... execute the paste would not execute the click event of the Paste menu item ... override the CTRL+V shortcut. ...
    (microsoft.public.vsnet.vstools.office)