Hi, Am 05.04.2013 um 00:25 schrieb Adam Brenner:
> Howdy All, > > Running GE 8.1.2. I have setup a consumable resource on our cluster > (of type memory), and it works great. How would I be able to grab a > value of that consumable resource via a prolog/epilog script? Example: > qrsh -l my_consumable_resource_of_type_memory=88G > then in a prolog/epilog script get the value of 88G > > I have taken a look the $SGE_JOB_SPOOL_DIR both 'config' and > 'environment' files does not contain any reference to my consumable > resource (strange, right?) it's necessary to use `qstat -j $JOB_ID` and `grep` the relevant information inside prolog/epilog. Even better and easier to parse would be `qstat -r` for the granted resources (like name of the granted PE). Unfortunately the latter can't be limited to the output of a single job. -- Reuti > Thanks in advanced, > -Adam > > -- > Adam Brenner > Computer Science, Undergraduate Student > Donald Bren School of Information and Computer Sciences > > Research Computing Support > Office of Information Technology > http://www.oit.uci.edu/rcs/ > > University of California, Irvine > www.ics.uci.edu/~aebrenne/ > [email protected] > _______________________________________________ > users mailing list > [email protected] > https://gridengine.org/mailman/listinfo/users _______________________________________________ users mailing list [email protected] https://gridengine.org/mailman/listinfo/users
