Sam Trenholme's webpage
This article was posted to the Usenet group alt.hackers in 1995; any technical information is probably outdated.

Re: I am so bored


Article: 7433 of alt.hackers
From: dchin@goophy.physics.orst.edu (David Chin)
Newsgroups: alt.hackers
Subject: Re: I am so bored
Date: 21 Feb 1995 06:31:29 GMT
Organization: Dept. of Physics, Oregon State University, OR, USA
Lines: 48
Approved: I hope so
Message-ID: 3ic1c1$89t@gaia.ucs.orst.edu
NNTP-Posting-Host: goophy.physics.orst.edu
X-Newsreader: TIN [version 1.2 PL2]
Status: RO

David A. Wagner (dawagner@flagstaff.princeton.edu) wrote:
> In article <1995Feb13.092210.15981@liberty.uc.wlu.edu>,
>  <dogan@ceng.metu.edu.tr> wrote:
> >       sitting by myself, I decided to turn on and off the loghts
f my pc.
> > The Capslock,numlock,.. : yeah the three lights on the keyboard.

> Two guys (Unix gods!) who used to go to school here wrote
> a program to do this on a Sun; I'll include it below for
> amusement value.  [Hope they don't mind.]

My first post.  And, "no hack too small", so here goes:

ObHack:

To do the stupid LED thing on IBM's Xstations requires just a little
script.  Great fun to play with since one can control any Xstation
hooked up to a single machine.  I've seen wonderful looks on people's
faces...


	#!/bin/sh

	disp=$1

	xsett="xset -display $disp"

	$xsett led 2; $xsett -led 2;
	$xsett led 3; $xsett -led 3;
	$xsett led 1; $xsett -led 1;
	$xsett led 3; $xsett -led 3;
	$xsett led 2; $xsett -led 2;


Will try a better ObHack next time.



--
David Chin				 Cornell University '92
					 Oregon State University '??
_________________________________________________________________________
Internet:			 |
  dchin@graphy.physics.orst.edu  |	  Phone:  (503) 752-3632
_________________________________|	  Add:	101 NW 23rd St.,
				 |		Corvallis,
"In short, in matters vegetable, |		     OR 97330
 animal, and mineral ..."	      |
_________________________________|_______________________________________



Parent Parent

Back to index