[GE users] piping SGE stdout to /bin/mail -- odd behavior

Chris Dagdigian dag at sonsorol.org
Sun Apr 6 21:58:37 BST 2008

Beautiful and simple answer, thanks!


On Apr 6, 2008, at 4:56 PM, Michael van Elst wrote:
> On Sun, Apr 06, 2008 at 04:17:09PM -0400, Chris Dagdigian wrote:
>> qsub -N test -b y 'echo "testing" | /bin/mail -s "TEST-DOES_NOT_WORK"
>> chris\@bioteam.net'
>> This is likely my shell ignorance speaking here but I can't quite get
>> my head around why invoking /bin/mail with the "-v" verbose switch
>> actually makes a difference in my SGE job actually successfully
>> calling /bin/mail.
> /bin/mail without the -v will fork a sendmail process that continues
> in the background. Since the job script now ends, SGE kills all
> running processes of the job, including the sendmail process.
> Greetings,
> --  
>                                Michael van Elst
> Internet: mlelstv at serpens.de
>                                "A potential Snark may lurk in every  
> tree."

To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
For additional commands, e-mail: users-help at gridengine.sunsource.net

More information about the gridengine-users mailing list