Can I adjust the output from "biff"?
Paul John Falstad
pfalstad at dae.Princeton.EDU
Sat Sep 29 03:14:53 AEST 1990
In article <21623 at duke.cs.duke.edu> jfw at neuro.duke.edu (John Whitehead) writes:
>Is there a way that I can make it so my "biff" announcements are briefer?
>I am running SunOS 4.1, which I guess is a Berkeley variation. Thanks.
Interesting. We have SunOS 4.1, but biff doesn't work.
Well, if you're really desperate, you could just create your own biffer,
like I had to do, since biff doesn't work on our system. Here it is:
---cut here---
#! /bin/sh
(cat; echo EOF) | (echo '
----
New mail has arrived:
'; sed 20q; echo ---- ) >/dev/`(who;
echo \`whoami\` null) | grep \`whoami\` | sed 1q | awk '{ print $2 }'`
exit 0
---cut here---
Put this in your private bin directory (say in /u/foobar/bin/biffer)
and create a .forward file like this:
\foobar, | /u/foobar/bin/biffer
And use biff n in your .login. Now you can change biffer to do whatever
you want with the message. If you just want to know that new mail has
arrived without seeing it, you could just do:
#! /bin/sh
echo 'You have new mail.' >/dev/`(who;
echo \`whoami\` null) | grep \`whoami\` | sed 1q | awk '{ print $2 }'`
exit 0
Or else you could filter out the header of the mail message.
There is probably an easier way, since you have comsat working, but this
works for me.
Here is the address to complain to:
pfalstad at phoenix.princeton.edu PLink:HYPNOS GEnie:P.FALSTAD CIS: 70016,1355
That address again,
sync at thumper.princeton.edu PLink:OHS738 GEnie:OHS738 CIS: 4128 143 1234 937
More information about the Comp.unix.questions
mailing list