Listing 2: Linux_kbr and _msr helper scripts
#!/bin/sh
# Command : Linux_kbr
#
# Return keybord interrupt count from proc file system
#
# Programmer: Doug Morris 1/17/96
#
grep keyboard /proc/interrupts|sed -e "s/.*:\\([ 0-9]*\\).*/\\1/g"
#!/bin/sh
# Command : Linux_msr
#
# Return mouse interrupt count from proc file system
#
# Programmer: Doug Morris 1/17/96
#
grep Mouse /proc/interrupts|sed -e "s/.*:\\([ 0-9]*\\).*/\\1/g"
# End of File
|