[cc'd back to slug]
On Thu, Jul 04, 2002 at 04:10:34PM +1000, Jeffrey Borg wrote:
>
> I was thinking more along the lines of a script which can tell you if
> there are any unread messages in the mbox file. Then it's very easy to
> make the beeps etc...
heh, reading the man pages for biff(1), then comsat(8) makes that route
sound a bit tricky :-/
but then again, I bet they knew how to do this in the eighties :)
man watch:
EXAMPLES
To watch for mail, you might do
watch -n 60 from
To watch the contents of a directory change, you could use
watch -d ls -l
...
You can watch for your administrator to install the latest
kernel with
watch uname -r
(Just kidding.)
the output of 'from' may need a bit of cleaning up, and you may want to
quieten it down by piping it through something that just beeps on input
[which I'll leave as an exercise for slug ;)]
on a related note:
conrad@screech:~% apt-cache show beep
Package: beep
Priority: optional
Section: sound
Installed-Size: 92
Maintainer: Gerfried Fuchs <[EMAIL PROTECTED]>
Architecture: i386
Version: 1.2.2-4
Depends: libc6 (>= 2.2.4-4), debconf
Filename: pool/main/b/beep/beep_1.2.2-4_i386.deb
Size: 16140
MD5sum: 14864e82460f4e71e3749e93158e7876
Description: Advanced pc-speaker beeper
beep does what you'd expect: it beeps. But unlike printf "\a" beep allows
you to control pitch, duration, and repetitions. Its job is to live inside
shell/perl scripts and allow more granularity than one has otherwise. It is
controlled completely through command line options. It's not supposed to be
complex, and it isn't - but it makes system monitoring (or whatever else it
gets hacked into) much more informative.
Conrad.
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug