Re: [Toolserver-l] Job scheduling and mail receiving
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 In article <4d56a4cd.6020...@surfeu.ch>, Dr. Trigon wrote: > But I was wondering how SGE can replace such a common tool like CRON > without havin same functionallity... :) Well, SGE does not replace cron. SGE is an additional tool which is available to users; cron is not going away (indeed, cron is required to use SGE, except for one-shot jobs). We would like all users to use SGE for their tools, which requires that everything which cron does on its own should *also* be possible, and easy, with SGE; otherwise users will not bother converting. However, this is an ongoing process and is obviously not complete. - river. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (NetBSD) iEYEARECAAYFAk1XJp8ACgkQIXd7fCuc5vIq8wCfV0T+TfolyRsG99FEvJrWXce8 mAcAoKHn2Ln22VUgMj79xIm+UZ5ANZ9J =iPMK -END PGP SIGNATURE- ___ Toolserver-l mailing list (Toolserver-l@lists.wikimedia.org) https://lists.wikimedia.org/mailman/listinfo/toolserver-l Posting guidelines for this list: https://wiki.toolserver.org/view/Mailing_list_etiquette
Re: [Toolserver-l] Job scheduling and mail receiving
On 02/13/2011 12:44 AM, Platonides wrote: > >> -j join >> >> Declares if the standard error stream of the job will be merged with the >> standard output stream of the job. >> An option argument value of oe directs that the two streams will be >> merged, intermixed, as standard output. An option argument value of eo >> directs that the two streams will be merged, intermixed, as standard error. >> >> If the join argument is n or the option is not specified, the two >> streams will be two separate files. > > Note that you can pass the parameter to SGE inside the script, too. Ah, yes, I'd seen that. In fact, I'm using it. What I don't recall seeing mentioned anywhere I looked was that things printed to stdout would be included in the job completion e-mail. (In fact, even you didn't say so out right in your message, you just seemed to imply it. And I haven't tested it, so I'm not going to swear it's even true.) In fact, the man page would seem to imply that it isn't: > If the -o option is not specified, the default file name for the > standard output stream will be used. The default name has the > following form: > job_name.osequence_number > where job_name is the name of the job, see -N option, and > sequence_number is the job number assigned when the job is submitted. -- Ilmari Karonen ___ Toolserver-l mailing list (Toolserver-l@lists.wikimedia.org) https://lists.wikimedia.org/mailman/listinfo/toolserver-l Posting guidelines for this list: https://wiki.toolserver.org/view/Mailing_list_etiquette
Re: [Toolserver-l] Job scheduling and mail receiving
Dr. Trigon wrote: > @Platonides: > What is this parameter then?? > > Thanks and greetings > DrTrigon It's -j > -j join > > Declares if the standard error stream of the job will be merged with the > standard output stream of the job. > An option argument value of oe directs that the two streams will be > merged, intermixed, as standard output. An option argument value of eo > directs that the two streams will be merged, intermixed, as standard error. > > If the join argument is n or the option is not specified, the two streams > will be two separate files. Note that you can pass the parameter to SGE inside the script, too. ___ Toolserver-l mailing list (Toolserver-l@lists.wikimedia.org) https://lists.wikimedia.org/mailman/listinfo/toolserver-l Posting guidelines for this list: https://wiki.toolserver.org/view/Mailing_list_etiquette
Re: [Toolserver-l] Job scheduling and mail receiving
Couldn't you just do `exec 2>&1` soon after the shebang line? -Jeremy On Feb 9, 2011 4:44 PM, "Platonides" wrote: > Ilmari Karonen wrote: >> I remember being disappointed by the lack of stderr output in the mail I >> got after switching my Commons MIME type statistics script over to SGE, >> but then I just thought "meh, I'm logging to a file anyway, I can always >> just look there if something goes wrong." > > SGE has a parameter to send stdout and stderr merged. > > ___ > Toolserver-l mailing list (Toolserver-l@lists.wikimedia.org) > https://lists.wikimedia.org/mailman/listinfo/toolserver-l > Posting guidelines for this list: https://wiki.toolserver.org/view/Mailing_list_etiquette ___ Toolserver-l mailing list (Toolserver-l@lists.wikimedia.org) https://lists.wikimedia.org/mailman/listinfo/toolserver-l Posting guidelines for this list: https://wiki.toolserver.org/view/Mailing_list_etiquette
Re: [Toolserver-l] Job scheduling and mail receiving
First I have to thank you all very much for the numerous answers I got to this question!! Some remarks from my side: Am 09.02.2011 22:47, schrieb Platonides: > Ilmari Karonen wrote: >> I remember being disappointed by the lack of stderr output in the mail I >> got after switching my Commons MIME type statistics script over to SGE, >> but then I just thought "meh, I'm logging to a file anyway, I can always >> just look there if something goes wrong." > > SGE has a parameter to send stdout and stderr merged. @Ilmari Karonen: This is more or less what I'm doing, in fact I use the wikimedia mailing capabilities to send a mail to myself with any content (error messages, tracebacks, ...) I want. But I was wondering how SGE can replace such a common tool like CRON without havin same functionallity... :) @Platonides: What is this parameter then?? Thanks and greetings DrTrigon Am 09.02.2011 22:47, schrieb Platonides: > Ilmari Karonen wrote: >> I remember being disappointed by the lack of stderr output in the mail I >> got after switching my Commons MIME type statistics script over to SGE, >> but then I just thought "meh, I'm logging to a file anyway, I can always >> just look there if something goes wrong." > > SGE has a parameter to send stdout and stderr merged. > > ___ > Toolserver-l mailing list (Toolserver-l@lists.wikimedia.org) > https://lists.wikimedia.org/mailman/listinfo/toolserver-l > Posting guidelines for this list: > https://wiki.toolserver.org/view/Mailing_list_etiquette > ___ Toolserver-l mailing list (Toolserver-l@lists.wikimedia.org) https://lists.wikimedia.org/mailman/listinfo/toolserver-l Posting guidelines for this list: https://wiki.toolserver.org/view/Mailing_list_etiquette