16 messages in net.sourceforge.lists.courier-usersRe: [courier-users] Re: no mail from ...
FromSent OnAttachments
Tim LynchAug 1, 2003 6:02 pm 
Sam VarshavchikAug 1, 2003 6:54 pm 
Tim LynchAug 4, 2003 11:57 am 
Jeff JansenAug 4, 2003 12:21 pm 
Sam VarshavchikAug 4, 2003 12:41 pm 
Tim LynchAug 4, 2003 2:04 pm 
Tim LynchAug 6, 2003 11:27 am 
Tim LynchAug 8, 2003 10:48 am 
Gordon MessmerAug 8, 2003 1:03 pm 
Gordon MessmerAug 8, 2003 2:37 pm 
Sam VarshavchikAug 8, 2003 5:50 pm 
Gordon MessmerAug 9, 2003 7:29 pm 
Sam VarshavchikAug 9, 2003 9:16 pm 
Tim LynchAug 11, 2003 12:38 pm 
Sam VarshavchikAug 11, 2003 2:09 pm 
Jon NelsonAug 11, 2003 2:13 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [courier-users] Re: no mail from root's cron/at jobsActions...
From:Tim Lynch (admi@thirdage.com)
Date:Aug 4, 2003 11:57:57 am
List:net.sourceforge.lists.courier-users

Sam Varshavchik wrote:

Some buggy versions of cron or at run commands without providing a standard error and/or standard output and/or standard input.

like i said stock redhat, this is at-3.1.8-23. so, if lots of people haven't observed and reported this bug then something must be unique about my system. am i the only one? if anyone would like to comment on success/failure in reproducing this i'd appreciate it. i just reproduced it with a newer version of courier.

it all works great for nonpriv users. why does it not work for root? does anyone else use batch to run root commands?

Try putting the following nonsense before the command:

exec >/dev/null; exec 2>/dev/null; exec 1</dev/null;

lol, i guess. i'm aware that one workaround is to handle the output in the job as opposed to allowing at to pass it to courier. sinking the output in /dev/null does prevent at from piping to courier, but it doesn't get it delivered in email.

a workaround: # batch <<eof echo '(echo this is a test; date) |mail -s "batch output" root' eof

please help: - anyone else observe this? - why fd's screwed for only root user?