[GE users] how to retrieve project info in prolog script

Reuti reuti at staff.uni-marburg.de
Wed May 30 17:36:13 BST 2007


Am 30.05.2007 um 17:38 schrieb Yuan Wan:

> I'm writing a prolog script doing some project-associated operations.
> But I have no idea how to get the 'project' name of a job.
>
> Anyone can help?  Thanks

Something like:

awk -F = ' /acct_project/  { print $2 } ' $SGE_ROOT/spool/$HOSTNAME/ 
active_jobs/$JOB_ID.${SGE_TASK_ID/undefined/1}/config

as idea might help (adjust to your spool directory).

-- Reuti

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
For additional commands, e-mail: users-help at gridengine.sunsource.net




More information about the gridengine-users mailing list