Linux
Postfix Mail Queue Commands
by Andrew on Mar.10, 2010, under Email, Linux, Postfix
To resend the mails in the mail queue, type either of the following two commands:
# postfix flush# postfix -fTo see the mail queue, type:
# mailqTo remove all mail from the mail queue, type:
# postsuper -d ALLTo remove all mails in the deferred mail queue, type:
# postsuper -d ALL deferredRun a cron job every x seconds
by Andrew on Jan.26, 2010, under Linux
As most of you know, the smallest time a cron job can be configured to run is every minute.
To run a script every 15 seconds for example, you could use the following:
main cron job:
* * * * * /path/to/wrapper.sh
wrapper.sh:
/path/to/script & sleep 15 /path/to/script & sleep 15 /path/to/script & sleep 15 /path/to/script &
If you can suggest any nicer alternatives to this example, please let me know.