Unix "at" command: I don't want it saving output to /var/mail/

2

By default (and from what I've looked at thus far), at dumps the standard terminal text output to /var/mail/yourusername. (e.g. echo "hello" | at now + 1 minute will save a log about the command) Is there some way to disable this, or an argument I can pass in to keep it from happening?

n00neimp0rtant

Posted 2012-02-16T01:11:14.927

Reputation: 193

Answers

3

Redirect your output to null

>/dev/null 2>&

For example:

echo "/path/myscript > /dev/null 2>&1" | at now

Rado

Posted 2012-02-16T01:11:14.927

Reputation: 509

2

at doesn't dump it to /var/mail/username, it emails it to the user. If your local mail server is configured to store messages in /var/mail/username, then it delivers them there. If you don't want them there, then configure your mail server differently.

psusi

Posted 2012-02-16T01:11:14.927

Reputation: 7 195