Mail (Unix)
Encyclopedia
mail is a command line email client for Unix
Unix
Unix is a multitasking, multi-user computer operating system originally developed in 1969 by a group of AT&T employees at Bell Labs, including Ken Thompson, Dennis Ritchie, Brian Kernighan, Douglas McIlroy, and Joe Ossanna...

 and Unix-like
Unix-like
A Unix-like operating system is one that behaves in a manner similar to a Unix system, while not necessarily conforming to or being certified to any version of the Single UNIX Specification....

 operating system
Operating system
An operating system is a set of programs that manage computer hardware resources and provide common services for application software. The operating system is the most important type of system software in a computer system...

s.

Example usage


mail -s "You've got mail" -c cc.rider@example.org somebody@example.com anotherbody@example.net

This sends a message with the subject "You've got mail" to two recipients, somebody@example.com and anotherbody@example.net, and CCs (copies) a third, cc.rider@example.org. The message will be typed after the command is entered and will be ended with Control-D.

Any Unix command sequence that generates text can be used to send a message in one line. For example:

echo "Some message" | mail -s "meeting today" somebody@example.com

This is especially useful for having a system report its status automatically through email.

External links

The source of this article is wikipedia, the free encyclopedia.  The text of this article is licensed under the GFDL.
 
x
OK