The simplest way to do this is to use the Account management tool for mail.sas.
Make sure you have a large enough quota to store the mail you will get. If you do not, mail will not be stored, and it will not be returned to the sender either.
Make the vacation file as described above. Then say (at the mail.sas
prompt):
mv .forward .fwdbak
This renames the .forward file that is needed for the vacation message to work.
Then, with an editor like pico or emacs, make a file called
(for example) .startvac, which has one line:
mv .fwdbak .forward
When .startvac is executed, it will restore the .forward file.
Then say (at the prompt), for example,
at -t 02081905 -f .startvac
This will run the file .startvac (starting your vacation message) at Feb. 8, 7:05 PM. (It is military time.)
You can stop the vacation message the same way. Say
at -t 03046000 -f .endvac
and make a file called .endvac with the line
mv .forward .fwdbak
This will stop the vacation message at 6 AM, March 4.