Am 06.12.2011 um 14:45 schrieb Mohamed Adel:
> And there is no special variable for the project?
Aha, you are referring to the project which was assigned already to this job at
submission time. Sorry, got it in the wrong way.
There is no direct variable, but you can check:
$ PRJ=$(grep "^acct_project=" $SGE_JOB_SPOOL_DIR/config)
$ echo ${PRJ#*=}
inside the epilog.
==
A longer way would be to use `qstat $JOB_ID` in the epilog (it might be
necessary to source $SGE_ROOT/default/common/settings.sh first) and then grep
for the project.
-- Reuti
> --ma
>
> -----Original Message-----
> From: Reuti [mailto:[email protected]]
> Sent: Tuesday, December 06, 2011 3:40 PM
> To: Mohamed Adel
> Cc: [email protected]
> Subject: Re: [gridengine users] project special variable
>
> Hi,
>
> Am 06.12.2011 um 14:30 schrieb Mohamed Adel:
>
>> I wanted to pass the project name to the epilog of a queue.
>> Is there a special variable like $job_id to pass to the epilog script?
>
> you don't need to pass the job id to the epilog script. The prolog and epilog
> have the same variables defined already like the job script itself, hence all
> SGE_*, JOB_ID, ...
>
> -- Reuti
>
>
>>
>> Thanks in advance,
>> --ma
>> _______________________________________________
>> users mailing list
>> [email protected]
>> https://gridengine.org/mailman/listinfo/users
>
>
_______________________________________________
users mailing list
[email protected]
https://gridengine.org/mailman/listinfo/users