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?

3 Answers 3

3

Redirect your output to null

>/dev/null 2>&

For example:

echo "/path/myscript > /dev/null 2>&1" | at now
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.

0

At least on Linux there is the -M option to not send any mails.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .