Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Jun 2004 13:35:37 -0500
From:      "W. D." <WD@US-Webmasters.com>
To:        freebsd-questions@freebsd.org
Cc:        klr@6s-gaming.com
Subject:   Re: LED proggy question
Message-ID:  <5.1.0.14.2.20040619133345.081f0490@209.152.117.178>
In-Reply-To: <3683.81.84.175.12.1087641634.squirrel@81.84.175.12>
References:  <5.1.0.14.2.20040618171859.076d9490@209.152.117.178> <4636.81.84.175.12.1087585711.squirrel@81.84.175.12> <5.1.0.14.2.20040618171859.076d9490@209.152.117.178>

next in thread | previous in thread | raw e-mail | index | archive | help
Hey Hugo,

Thanks for the info!=20

I don't think that the rest of the list got the reply because
"freebsd-questions@freebsd.org" wasn't in one of the recipient
fields.  I don't know why the list doesn't include it.

Regards,

W. D.=20

At 05:40 6/19/2004, klr@6s-gaming.com, wrote:
>Hey,
>
>I got this working, but only with a x-based program. I pkg_add'ed X and
>started a small session with a xterm to be able to run this program (name
>is xleds). For the interested guys, here is the script:
>
>ipfw-visual.sh:
>
>#!/bin/sh
>tail -f /var/log/ipfw.log | \
>  awk '
>$0 ~ /ICMP/ {
>system("sh /scripts/scrlock");
>}
>$0 ~ /TCP/ {
>system("sh /scripts/numlock");
>}
>$0 ~ /UDP/ {
>system("sh /scripts/capslock");
>}
>'
>
>all the /scripts/*lock consist of the following:
>
>#/bin/sh
>xleds num
>#sleep 0.05
>xleds num
>
>Change num for caps or scrl. I moved xleds to /usr/local/bin so don't need
>a path. You can find this xleds thing easily on google :-)
>
>Initially I  added a sleep delay, but when much traffic was being blocked
>continuously it would keep on blinking the light a lot of time after
>(because of the sleep delay), so later I removed this.
>
>
>
>Regards,
>
>Hugo
>> At 14:08 6/18/2004, klr@6s-gaming.com, wrote:
>>>hey,
>>>
>>>I've been trying to find a program on the ports that allows me to change
>>>the state of the keyboard LEDs. I want to put the keyboard on the room
>>>wall and make a script to call a program which makes leds blink according
>>>to the kind of traffic being blocked on the firewall. I want a program
>>>like:
>>>
>>>blink 1 - blinks num lock
>>>blink 2 - blinks caps lock
>>>blink 3 - blinks scroll lock
>>>
>>>If there isn't such a program on the ports, perhaps someone with the
>>>knowledge to write this program could do it ? I don't touch C for many
>>>many years and couldn't find any function to do this.
>>>
>>>Any help appreciated! :-)
>>>
>>>Regards,
>>>
>>>Hugo
>>
>> Hugo,
>>
>> This sound insane, but very cool.  Please let us know if you
>> can get it to work.  If FreeBSD has Linux emulation:
>>=
 http://www.Google.com/search?q=3Dkeyboard+kylix+%22num+lock%22+%22caps+lock=
%22
>>
>> Start Here to Find It Fast!&#8482; ->
>> http://www.US-Webmasters.com/best-start-page/
>> $8.77 Domain Names -> http://domains.us-webmasters.com/
>>
>> _______________________________________________
>> freebsd-questions@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> To unsubscribe, send any mail to
>> "freebsd-questions-unsubscribe@freebsd.org"
>>
>
>
>--=20
>www.6s-gaming.com

Start Here to Find It Fast!=99 ->=
 http://www.US-Webmasters.com/best-start-page/
$8.77 Domain Names -> http://domains.us-webmasters.com/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.1.0.14.2.20040619133345.081f0490>