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

Michael van Elst mlelstv at serpens.de
Sun Apr 6 21:56:08 BST 2008


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