TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TCLUG:1420] how do I make a beep?



Quoting Andrew McCulloh (mcculloh@2z.net):
> There are more direct ways to do this. The "real" unix way is to write
> a program that reads the utmp file. Have a look at the utmp(5) and
> getutent(3) man pages for info on how to get information out of
> utmp. A copy of stevens' Advanced Progamming the UNIX Environment will
> come in handy if you want to send signals to other peoples tty's.

The above is this "Microsoft" or "Windows" way. Why re-invent the
wheel? Use the tools that are at hand and the simplest solution.

From the posting you can tell the individual is not a systems program,
why have them jump into signal handling, ptys, slave ptys and the
works? Sheesh...

-- 
Bob Tanner <tanner@real-time.com>       | Phone : (612)943-8700
http://www.real-time.com                | Fax   : (612)943-8500
Key fingerprint =  6C E9 51 4F D5 3E 4C 66 62 A9 10 E5 35 85 39 D9