mailcheck(1)
mailcheck --
check for mail
Synopsis
mailcheck
Description
mailcheck checks for the existence of mail. Whenever it finds
some, it prints the You have mail
message on standard output.
If there is no mail, it prints No mail
on standard error.
mailcheck is commonly used in a user's $HOME/.profile
as follows:
mailcheck 2>/dev/null
This prints a message when there is mail, and is otherwise silent.
Files
- /etc/default/mail
-
mail inbox location information
Exit codes
- 0
-
mail exists
- 1
-
no mail
- 2
-
some other error
References
mailintro(1)
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.