The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Keyboard only in Red Hat GUI BOFH Linux 3 11-18-2006 10:52 PM
mdk 10.2 and keyboard penguin-friend Linux 3 02-09-2005 07:17 PM
Kill from keyboard jwideman SCO 3 02-03-2005 12:53 PM
CZ/Hungary Keyboard paho SUN Solaris 0 11-30-2004 06:25 AM
How can I map Unix keyboard for PC keyboard simhab UNIX for Advanced & Expert Users 1 03-06-2002 11:29 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-03-2005
jhansrod jhansrod is offline
Registered User
  
 

Join Date: May 2005
Posts: 80
Disable Keyboard in AIX 5.2

Hi all.
I have a log file that the operators monitor. This file is simply tailed -f on a screen in the ops room. I would like to know if there is anyway I can disable the keyboard from any input other than physically unpluging it. Something like a trap in the script.

The system is AIX 5.2.

Thanks

J
  #2 (permalink)  
Old 06-18-2005
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
  
 

Join Date: May 2005
Location: In the leftmost byte of /dev/kmem
Posts: 1,641
To my knowledge there is no such way. You might protect the motoring output from the (hands of the) operators by using a shell construct like:


Code:
while : ; do
     tput clear
     tail -f25 <logfile>
done

and use "trap" to intercept anything they might try on the keyboard (especially the signals 1, 2 and 3). Additionally you could display the window with this process from another machine, but you would have to take care for the possiblity that the displaying machine gets rebooted then. A script watching over the process for the window and on demand restarting it should do this.

Hope this helps.

bakunin
  #3 (permalink)  
Old 06-18-2005
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,246
Yes, you can trap the signals from the keyboard in your script and silently ignore them, provided of course that the shell you are using has this facility, for exaple yout would trap SIGINT to prevent ^C on the keyboard from stopping the script.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:07 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0