Re: LED proggy question
Hey Hugo, Thanks for the info! I don't think that the rest of the list got the reply because "[EMAIL PROTECTED]" wasn't in one of the recipient fields. I don't know why the list doesn't include it. Regards, W. D. At 05:40 6/19/2004, [EMAIL PROTECTED], 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, [EMAIL PROTECTED], 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=keyboard+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/ >> >> ___ >> [EMAIL PROTECTED] mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to >> "[EMAIL PROTECTED]" >> > > >-- >www.6s-gaming.com Start Here to Find It Fast! -> http://www.US-Webmasters.com/best-start-page/ $8.77 Domain Names -> http://domains.us-webmasters.com/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: LED proggy question
At 14:08 6/18/2004, [EMAIL PROTECTED], 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=keyboard+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/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: LED proggy question
[EMAIL PROTECTED] 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. sysutils/flasher may be a good source for learning how to work with keyboard LEDs. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: LED proggy question
Hey, Yes, that is where I got the idea from. But the C program there implies i'm using X, which i'm not. From what I understood, the functions lie on Xlib.h so they shouldn't work without X. I could be wrong tho. But I don't even have X libs installed on the machine in question. > Something similar (playing sounds or blinking keyboard leds on firewall > activity) was mentioned on Slashdot last week. Have a look at > http://www.linuxgazette.com/node/view/9074 > > GH > > > On Fri, Jun 18, 2004 at 07:08:31PM -, [EMAIL PROTECTED] 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 >> >> >> -- >> www.6s-gaming.com >> >> ___ >> [EMAIL PROTECTED] mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to >> "[EMAIL PROTECTED]" > ___ > [EMAIL PROTECTED] mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "[EMAIL PROTECTED]" > -- www.6s-gaming.com ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: LED proggy question
Something similar (playing sounds or blinking keyboard leds on firewall activity) was mentioned on Slashdot last week. Have a look at http://www.linuxgazette.com/node/view/9074 GH On Fri, Jun 18, 2004 at 07:08:31PM -, [EMAIL PROTECTED] 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 > > > -- > www.6s-gaming.com > > ___ > [EMAIL PROTECTED] mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: LED proggy question
You want XLeds. (I haven't used it on BSD yet.) For reference, read Cryptonomicon, by Neal Stephenson. -- Ted On Jun 18, 2004, at 12:08, [EMAIL PROTECTED] 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 -- www.6s-gaming.com ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"