On my current Debian setup, I have a file /var/log/mail.log which Dovecot, Postfix, and Spamassassin's spamd all output messages to. I know that the logger command can output to syslog, but is there some command that easily lets me output to the mail log from a bash script, or do I have to manually open it and append to it?
|
|
|||
|
|
|
Turns out the stuff I was logging using |
|||
|
|
|
"Manually open and append" in a bash context is pretty simple:
Standard output from
Standard output (1) & error (2) for everything in the rest of the script will be appended to the file. If you want to initially truncate the file (ie, not append to pre-existing content), use |
|||
|
