opensuse - sh shell emails var/usr/email/dave forwarding -


i'm new opensuse 11.1, have several crontab jobs running, 1 of creates dynamic list of 'at' jobs each day. there way emails 'sh' shell sends /var/usr/email/dave forwarded other email addresses, research has come blank, because i'm not sure i'm looking for. cheers if can help.

since looking this, when printing perl after script executed in /bin/sh shell, /bin/sh emails printout /var/usr/mail/dave, simple forward email other pop3 accounts, 1 of accessible phone. apologies original question wasn't clear enough

set mailto environment variable in crontab file name of user you'd receive mail. add if it's not there.

from man 5 crontab:

        in addition logname, home, , shell, cron(8) @ mailto if         has   reason   send  mail result of running commands in        ``this'' crontab.  if mailto defined (and non-empty), mail   sent        user named.  mailto may used direct mail multi‐        ple recipients separating recipient users comma. if mailto        defined empty (mailto=""), no mail sent.  otherwise mail        sent owner of crontab. 

Comments

Popular posts from this blog

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c++ - Convert big endian to little endian when reading from a binary file -