[svlug] preventing `at` from sending mail

Ben Spade spade at spade.com
Tue Nov 3 15:51:26 PST 1998


> How can I prevent `at` from sending me mail once a job is completed, it says
> nothing about it in the man, it only mentions that it DOES send you the mail.
If there is nothing to send, then there will be no email. One way of insuring
this is to redirect both standard out and standard error to a file (or /dev/null).
I do this more with cron jobs, but the principle applies to at as well.

For example:
	26: at 15:18
	at> ls
	at> <EOT>
	warning: commands will be executed using /bin/sh
	job 1 at 1998-11-03 15:18
produces email, while
	27: at 15:19
	at> ls > /tmp/aaaa
	at> <EOT>
	warning: commands will be executed using /bin/sh
	job 2 at 1998-11-03 15:19
does not.

Note that 'at -m' will force email, even if there is no output.

	Ben
> 
> -- 
>  -------------------------------------------------------------------------
> | Ze'ev Maor		    | "We all have a little Daemon inside...      |
> | gmaor at tx.technion.ac.il   |  ...Waiting to come out and become a kernel"|
>  -------------------------------------------------------------------------
> 
> --
> echo "unsubscribe svlug" | mail majordomo at svlug.org
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ to unsubscribe
> 


-- 
    Ben Spade                   President, Silicon Valley Linux User's Group
  spade at spade.com                              spade at svlug.org
http://www.spade.com/                        http://www.svlug.org/
~


--
echo "unsubscribe svlug" | mail majordomo at svlug.org
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ to unsubscribe



More information about the svlug mailing list