Ubuntu – `at` command: what is the meaning of the option `-w`

at-commandcommand line

I have a script that uses at command. And sometimes I receiving emails as this one:

Date: Mon,  3 Jul 2017 14:18:00 +0300 (EEST)
From: root <root@localhost.org>
To: root@localhost.org
Subject: Output from your job      173

Another app is currently holding the xtables lock. Perhaps you want to use the -w option?

Of course I would use this option to prevent messages like this, but first I want to know what is the meaning of this option. Unfortunately -w option is not listed in man at.

Does anyone know what exactly this option means?

Best Answer

The message is from your job, not from at (and at also does not have a -w option BTW). By default, at sends STDOUT and STDERR from any job via mail, unless specified otherwise.


Presumably, your job was a iptables task -- based on the message regarding xtables. And the -w (--wait) option of iptables waits for the xtables lock to be released, as suggested in the message.