[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Condor-users] MacOSX email
- Date: Thu, 4 Oct 2012 07:29:54 +0000
- From: "Jewell, Chris" <C.P.Jewell@xxxxxxxxxxxx>
- Subject: Re: [Condor-users] MacOSX email
On 4 Oct 2012, at 15:32, Jewell, Chris wrote:
> On 3 Oct 2012, at 17:14, Jewell, Chris wrote:
>> I'm trying to get round the issue with /usr/bin/mail processes getting stuck on MacOSX. I read the "Troubleshooting" section of the manual, trying out the diagnostic:
>> $ uname -a | mail -v my@xxxxxxxxxxxxxxxx
>> which returned an error. So, I adjusted my Postfix configuration to explicitly include my organisation's SMTP mail relay, and now I can receive emails with the uname info just fine.
>> However, the /usr/bin/mail processes are still getting stuck. There's nothing in the Condor logs, the mail.log, or system log that contains any information on why the processes are sticking. Does anyone have the crucial bit of information I'm missing?
A workaround, for now, is to create bash wrapper for the mailer:
cat - | /usr/bin/mail $1 "$2" $3
1) The second command line argument must be enclosed in quotes, or the subject line get broken up.
2) It looks like there's an oddball issue with POSIX pipes on OSX. A Perl wrapper, opening a pipe to /usr/bin/mail similarly hangs. I'm not sure of the difference between that and what bash is doing. I stand to be enlightened!
Anyway, I hope that helps somebody.
Dr Chris Jewell
Lecturer in Biostatistics
Institute of Fundamental Sciences
Private Bag 11222
Palmerston North 4442
Tel: +64 (0) 6 350 5701 Extn: 3586