xref: /freebsd/usr.bin/biff/biff.1 (revision bdcbfde31e8e9b343f113a1956384bdf30d1ed62)
19b50d902SRodney W. Grimes.\" Copyright (c) 1980, 1990, 1993
29b50d902SRodney W. Grimes.\"	The Regents of the University of California.  All rights reserved.
39b50d902SRodney W. Grimes.\"
49b50d902SRodney W. Grimes.\" Redistribution and use in source and binary forms, with or without
59b50d902SRodney W. Grimes.\" modification, are permitted provided that the following conditions
69b50d902SRodney W. Grimes.\" are met:
79b50d902SRodney W. Grimes.\" 1. Redistributions of source code must retain the above copyright
89b50d902SRodney W. Grimes.\"    notice, this list of conditions and the following disclaimer.
99b50d902SRodney W. Grimes.\" 2. Redistributions in binary form must reproduce the above copyright
109b50d902SRodney W. Grimes.\"    notice, this list of conditions and the following disclaimer in the
119b50d902SRodney W. Grimes.\"    documentation and/or other materials provided with the distribution.
12*fbbd9655SWarner Losh.\" 3. Neither the name of the University nor the names of its contributors
139b50d902SRodney W. Grimes.\"    may be used to endorse or promote products derived from this software
149b50d902SRodney W. Grimes.\"    without specific prior written permission.
159b50d902SRodney W. Grimes.\"
169b50d902SRodney W. Grimes.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
179b50d902SRodney W. Grimes.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
189b50d902SRodney W. Grimes.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
199b50d902SRodney W. Grimes.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
209b50d902SRodney W. Grimes.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
219b50d902SRodney W. Grimes.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
229b50d902SRodney W. Grimes.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
239b50d902SRodney W. Grimes.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
249b50d902SRodney W. Grimes.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
259b50d902SRodney W. Grimes.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
269b50d902SRodney W. Grimes.\" SUCH DAMAGE.
279b50d902SRodney W. Grimes.\"
28927853b4SJoel Dahl.Dd April 28, 2013
299b50d902SRodney W. Grimes.Dt BIFF 1
3062500372SRuslan Ermilov.Os
319b50d902SRodney W. Grimes.Sh NAME
329b50d902SRodney W. Grimes.Nm biff
339b50d902SRodney W. Grimes.Nd "be notified if mail arrives and who it is from"
349b50d902SRodney W. Grimes.Sh SYNOPSIS
358fe908efSRuslan Ermilov.Nm
367da9dccbSJohan Karlsson.Op Cm n | y | b
379b50d902SRodney W. Grimes.Sh DESCRIPTION
383898680cSPhilippe CharnierThe
393898680cSPhilippe Charnier.Nm
405eb3a502SRobert Drehmelutility informs the system whether you want to be notified on your terminal
415eb3a502SRobert Drehmelwhen mail arrives.
429b50d902SRodney W. Grimes.Pp
43adf721d1SRobert DrehmelAffected is the first terminal associated with the standard input,
44adf721d1SRobert Drehmelstandard output or standard error file descriptor, in that order.
45adf721d1SRobert DrehmelThus, it is possible to use the redirection facilities of a shell to
46adf721d1SRobert Drehmeltoggle the notification for other terminals than the one
47adf721d1SRobert Drehmel.Nm
48adf721d1SRobert Drehmelruns on.
49adf721d1SRobert Drehmel.Pp
50b0a2f60dSPhilippe CharnierThe following options are available:
51b0a2f60dSPhilippe Charnier.Bl -tag -width indent
529b50d902SRodney W. Grimes.It Cm n
53b0a2f60dSPhilippe CharnierDisable notification.
549b50d902SRodney W. Grimes.It Cm y
557da9dccbSJohan KarlssonEnable header notification.
567da9dccbSJohan Karlsson.It Cm b
577da9dccbSJohan KarlssonEnable bell notification.
589b50d902SRodney W. Grimes.El
599b50d902SRodney W. Grimes.Pp
607da9dccbSJohan KarlssonWhen header notification is enabled, the header and first few lines of
617da9dccbSJohan Karlssonthe message will be printed on your terminal whenever mail arrives.
629b50d902SRodney W. GrimesA
63b01647a8SGavin Atkinson.Dq "biff y"
649b50d902SRodney W. Grimescommand is often included in the file
6516c1a8c6SRuslan Ermilov.Pa .login
669b50d902SRodney W. Grimesor
6716c1a8c6SRuslan Ermilov.Pa .profile
689b50d902SRodney W. Grimesto be executed at each login.
699b50d902SRodney W. Grimes.Pp
70d3ee5eafSRuslan ErmilovWhen bell notification is enabled, only two bell characters
71d3ee5eafSRuslan Ermilov.Tn ( ASCII
72d3ee5eafSRuslan Ermilov\\007)
737da9dccbSJohan Karlssonwill be printed on your terminal whenever mail arrives.
747da9dccbSJohan Karlsson.Pp
755eb3a502SRobert DrehmelIf no arguments are given,
765eb3a502SRobert Drehmel.Nm
775eb3a502SRobert Drehmeldisplays the present notification status of the terminal to the
785eb3a502SRobert Drehmelstandard output.
795eb3a502SRobert Drehmel.Pp
803898680cSPhilippe CharnierThe
813898680cSPhilippe Charnier.Nm
823898680cSPhilippe Charnierutility operates asynchronously.
839b50d902SRodney W. GrimesFor synchronous notification use the
84b0a2f60dSPhilippe Charnier.Ev MAIL
859b50d902SRodney W. Grimesvariable of
869b50d902SRodney W. Grimes.Xr sh 1
879b50d902SRodney W. Grimesor the
8816c1a8c6SRuslan Ermilov.Va mail
899b50d902SRodney W. Grimesvariable of
909b50d902SRodney W. Grimes.Xr csh 1 .
91a866e170SRuslan Ermilov.Sh EXIT STATUS
92894429f2SJohan KarlssonThe
93894429f2SJohan Karlsson.Nm
94894429f2SJohan Karlssonutility exits with one of the following values:
95d3ee5eafSRuslan Ermilov.Bl -tag -width indent
96894429f2SJohan Karlsson.It 0
97927853b4SJoel DahlNotification was enabled at the time of invocation.
98894429f2SJohan Karlsson.It 1
99927853b4SJoel DahlNotification was disabled at the time of invocation.
100894429f2SJohan Karlsson.It >1
101894429f2SJohan KarlssonAn error occurred.
102894429f2SJohan Karlsson.El
1035eb3a502SRobert Drehmel.Sh COMPATIBILITY
1045eb3a502SRobert DrehmelPrevious versions of the
1055eb3a502SRobert Drehmel.Nm
1065eb3a502SRobert Drehmelutility affected the terminal attached to standard error without first
1075eb3a502SRobert Drehmeltrying the standard input or output devices.
1089b50d902SRodney W. Grimes.Sh SEE ALSO
1099b50d902SRodney W. Grimes.Xr csh 1 ,
1109b50d902SRodney W. Grimes.Xr mail 1 ,
1119b50d902SRodney W. Grimes.Xr sh 1 ,
1129b50d902SRodney W. Grimes.Xr comsat 8
1139b50d902SRodney W. Grimes.Sh HISTORY
1149b50d902SRodney W. GrimesThe
1159b50d902SRodney W. Grimes.Nm
1169b50d902SRodney W. Grimescommand appeared in
1179b50d902SRodney W. Grimes.Bx 4.0 .
11887faa07bSSheldon HearnIt was named after the dog of Heidi Stettner.
11987faa07bSSheldon HearnHe died
1205514e5cbSWolfram Schneiderin August 1993, at 15.
121