[torqueusers] [SOLVED] Re: sending mails with mail command

Arnau Bria arnaubria at pic.es
Fri Feb 26 03:25:17 MST 2010


Hi all,

I finally got the solution!!


#!/bin/bash
/bin/mail -s KAKA arnaubria at pic.es </home/atprd001/kaka.txt
sleep 10


sleep is the answer!!

if not, the job is too short, and qsub kills mail process before it
ends sending the mail:

Feb 26 11:24:30 pbs01-test sendmail[13629]: o1QAOT8N013629: to=arnaubria at pic.es, ctladdr=atprd001 (42001/50045), delay=00:00:01, xdelay
y=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (o1QAOULG013631 Message accepted for delivery)
Feb 26 11:24:30 pbs01-test sendmail[13633]: STARTTLS=client, [...]
Feb 26 11:24:33 pbs01-test sendmail[13633]: o1QAOULG013631: to=<arnaubria at pic.es>, ctladdr=<atprd001 at pbs01-test.pic.es> (42001/50045), 
esmtp, pri=120356, [...], dsn=2.0.0, stat=Sent (Thanks)

notice it takes 3 sec to send the mail.


thanks to all for your help!

Cheers,
Arnau


More information about the torqueusers mailing list