Linux and Unix vacation command
Quick links
About vacation
Syntax
Examples
Related commands
Linux and Unix main page
Reply to mail automatically.
vacation [-I]
vacation [-j] [-a alias] [-tN ] username
| -I | Initialize the .vacation.pag and .vacation.dir files and enables vacation . If the -I flag is not specified, and a user argument is given, vacation reads the first line from the standard input (for a From: line, no colon). If absent, it produces an error message. |
Options -j, -a, -t are configuration options to be used in conjunction with vacation in the .forward file, not on the command line.
| -j | Do not check whether the recipient appears in the To: or the Cc: line. |
| -a alias | Indicate that alias is one of the valid aliases for the user running vacation , so that mail addressed to that alias generates a reply. |
| -tN | Change the interval between repeat replies to the same sender. The default is 1 week. A trailing s, m, h, d, or w scales N to seconds, minutes, hours, days, or weeks respectively. |
| username |
The .vacation.msg should include a header with at least a Subject: line (it should not include a From: or a To: line). For example:
Subject: I am on vacation!
I am on currently on vacation and will return July 22.
