Am 25.09.2012 um 23:51 schrieb Güllmar, Daniel:

>>> 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.

-- Reuti


> 
> Do you have a nice convenient solution for this problem? The path 
> /data/gridenginelogs is mounted using automount by all clients, qmaster and 
> execd hosts.
> 
> Thanks, 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