[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Setting MAILTO to various address in the same crontab?



Bob Proulx wrote:
> Adam Funk wrote:
> > Another thing I was wondering: is it possible to change the mailing
> > address for one at job?
> 
> I usually just mail the output in the at job itself.
> 
>   echo "echo test | mailx -s test $(whoami)' | at now + 1 minute
>   echo "echo reminder | mailx -s reminder $(whoami)' | at 8 am
>   echo "{ echo stuff; echo more stuff ;} | mailx -s stuff $(whoami)' | at 10:30 am next wednesday

Let me correct my quotation mistakes there.

  echo "echo test | mailx -s test $(whoami)" | at now + 1 minute
  echo "echo reminder | mailx -s reminder $(whoami)" | at 8 am
  echo "{ echo stuff; echo more stuff ;} | mailx -s stuff $(whoami)" | at 10:30 am next wednesday

Bob

Attachment: signature.asc
Description: Digital signature


Reply to: