Thx for your kindness and patience, so , " qacct -A sge" has a record on accounting? I tested this command but record is empty! I just test this,that is not necessary.
Best regards On Wed, Dec 14, 2011 at 2:03 PM, Reuti <re...@staff.uni-marburg.de> wrote: > Am 14.12.2011 um 11:22 schrieb mahbube rustaee: > > > I set prolog : > > sge@/root/test/prolog.sh $job_name > > user02 sumitted a job but setting prolog ran! > > I expect prolog script run for jobs of just " sge" user. why? I 'm > wrong? > > No, it will run for each and every user, but always under the "sge" > account (i.e. the prolog runs under this account, maybe to write to a > certain place where it needs this user to have access). > > BTW: often "sge" and other users can't access the /root directory, and > hence the defined script. > > -- Reuti > > > > Thx > > > > On Wed, Dec 14, 2011 at 11:47 AM, William Hay <w....@ucl.ac.uk> wrote: > > On 14 December 2011 07:50, mahbube rustaee <rust...@gmail.com> wrote: > > > Hi , > > > > > > 1) By default prolog output is output of user's job. > > > How can I set other path/filename for prolog output? > > Well since your prolog appears to be shell. > > Add a line at the top of the script > > exec >/location/of/prolog/output > > > > > > > > 2) I set prolog : > > > /root/test/epilog.sh $job_name > > > I prefixed above with "sge@ ": > > > /root/test/epilog.sh "sge@ " $job_name . any error doesn't occur. > > They syntax you want is more like > > sge@/root/test/epilog.sh $job_name > > > after command "qacct -A sge" , accounting is empty! > > > what is missing? > > Why would you expect something there? The accounting file records > > info against the user the job ran as not the prolog. > > > > > How can I execute prolog script under sge username ? > > By prefixing the prolog script name with sge@ as above. > > > > William > > > > > > Thx > > > > _______________________________________________ > > users mailing list > > users@gridengine.org > > https://gridengine.org/mailman/listinfo/users > >
_______________________________________________ users mailing list users@gridengine.org https://gridengine.org/mailman/listinfo/users