>>>> does anybody know how I can modify the SGE_STDOUT_PATH and SGE_STDERR_PATH 
>>>> using a central function (e.g. within prolog) ...
>>> you can set them by the "-o"/"-e" option to `qsub`, also in the global 
>>> $SGE_ROOT/default/common/sge_request to define it once for all users.
>>> These options accept both: a filename (incl. path) or only the path to a 
>>> directory while keeping the original name.
>>> Have a look at `man qsub` for the pseudo variables you can use with these 
>>> options like $USER; note that you can't use any standard environment 
>>> variables.

>> Great, that worked. The second question which arises right from here now. 
>> How can I create the directories on demand (e.g. 
>> /data/gridenginelogs/$USER). I do not want to create the directory for each 
>> user in advance. It should be  checked on every submission and should be 
>> created if it doesn't exist. Performing this in the prolog script is to late 
>> ... some submission scripts rely on this directory before invoking the 
>> prolog script.

>The submission scripts scripts rely on them? They want to read something 
>there? Then let them create it if it's not there. Otherwise you could put it 
>maybe in a JSV (most likely you >need a suid binary to give the rights from 
>the admin user to the user in question for the `mkdir`), without 
>changing/checking anything of the job.

JSV sounds great. I will check that, but I guess for the matlab/sge 
integration, this wont work, since the creation of tasks for an independent 
distributed job already starts to create subfolders in the "datalocation" 
(/data/gridenginelogs/$USER) before invoking qsub. Maybe, I can create that dir 
if a user starts matlab and thus only matlab users get this directory in 
advance and any other scripts, which do not supply a logdestination get this 
location through JSV mechanism.

-- Daniel

Universitätsklinikum Jena - Bachstrasse 18 - D-07743 Jena
Die gesetzlichen Pflichtangaben finden Sie unter 
http://www.uniklinikum-jena.de/Pflichtangaben.html

_______________________________________________
users mailing list
[email protected]
https://gridengine.org/mailman/listinfo/users

Reply via email to