Hi Reuti, That sounds like a possible solution. I assume that the JSV runs in the context of the scheduler, i.e. I have no possibility to copy stuff into the spool dir or to set envvars for the job, right?
Cheers, Christoph Gesendet von meinem Windows Phone ----- Ursprüngliche Nachricht ----- Von: Reuti Gesendet: Mittwoch, 21. September 2011 16:32 An: Christoph Müller Cc: [email protected] Betreff: Re: [gridengine users] Access complex resources from prolog script Hi, Am 21.09.2011 um 15:54 schrieb Christoph Müller: > I have several custom complex values defined, which the user can request. I > want to know now in the prolog script of a queue which of the resources have > been requested for the current job. However, there do not seem to be any > environment variables or data in the spool dir to achieve this. Is there any > way to achieve this, and if so how? this is true. A workaround could be: - set up a JSV (job submission verifier), which add appropriate entries in the context of the job (i.e. translate/copy them). This is just meta information (like a comment) and can also be done beforehand by: qsub -ac INTEGRAL=FINE,PRECISION=TOTAL test.sh - in the prolog you can scan for the line in the qstat output: #!/bin/sh . /usr/sge/default/common/settings.sh qstat -j $JOB_ID | sed -n -e "/^context/s/^context: *//p" | tr "," "\n" This will give you an output of: INTEGRAL=FINE PRECISION=TOTAL which you can write to a file, pipe to another command... Maybe it solves your request. -- Reuti _______________________________________________ users mailing list [email protected] https://gridengine.org/mailman/listinfo/users
