From owner-freebsd-questions@FreeBSD.ORG Sun Jun 20 01:27:54 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F3B716A4CE for ; Sun, 20 Jun 2004 01:27:54 +0000 (GMT) Received: from usw2.natel.net (2b.bz [209.152.117.190]) by mx1.FreeBSD.org (Postfix) with SMTP id 0D60E43D31 for ; Sun, 20 Jun 2004 01:27:54 +0000 (GMT) (envelope-from WD@US-Webmasters.com) Received: (qmail 55183 invoked from network); 19 Jun 2004 18:36:17 -0000 Received: from batv-01-006.dialup.netins.net (HELO xyz.US-Webmasters.com) (216.248.109.7) by us-webmasters.com with SMTP; 19 Jun 2004 18:36:17 -0000 Message-Id: <5.1.0.14.2.20040619133345.081f0490@209.152.117.178> X-Sender: wd@209.152.117.178 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Sat, 19 Jun 2004 13:35:37 -0500 To: freebsd-questions@freebsd.org From: "W. D." 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> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable cc: klr@6s-gaming.com Subject: Re: LED proggy question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Jun 2004 01:27:54 -0000 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!™ -> >> 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/