[GE users] qdel dows not kill the job when using pag command?

Duc Bao Ta ta at physik.uni-bonn.de
Sat Jun 2 09:29:50 BST 2007


    [ The following text is in the "ISO-8859-1" character set. ]
    [ Your display is set for the "ISO-8859-10" character set.  ]
    [ Some special characters may be displayed incorrectly. ]

Hi Reuti,

that was the solution!

Thank you
Duc

Reuti wrote:
> Am 01.06.2007 um 15:43 schrieb Duc Bao Ta:
>
>> <snip>
>>>
>> I have set the pag_cmd variable to /usr/bin/pagsh instead of my script
>> and now I can delete the job. If I again look at the process tree for
>> jobs with and without my pag script I can see a difference:
>>
>> PPID PID PGID SID
>>      1  3267  3267  2480    0/opt/sge/bin/lx24-x86/sge_execd
>> --with my pag script:
>>  3267 30673  3267  2480    0 \_ /bin/sh /opt/sge/util/pag -c exec
>> /opt/sge/bin/lx24-x86/sge_shepherd -bg
>> 30673 30680 30680  2480    0 |   \_ 
>> /opt/sge/bin/lx24-x86/sge_shepherd -bg
>> 30680 30700 30680  2480    0 |       \_
>> /opt/sge/bin/lx24-x86/sge_coshepherd /opt/sge/util/set_token_cmd duc 
>> 86400
>> 30680 30718 30718 30718 1025 |       \_ /bin/bash
>> /opt/sge/sunfire/spool/silab03/job_scripts/537
>> 30718 30719 30718 30718 1025 |           \_ sleep 2222222
>> --with /usr/bin/pagsh:
>>  3267 31164 31164  2480    0 \_ /opt/sge/bin/lx24-x86/sge_shepherd -bg
>> 31164 31177 31164  2480    0     \_ /opt/sge/bin/lx24-x86/sge_coshepherd
>> /opt/sge/util/set_token_cmd duc 86400
>> 31164 31188 31188 31188 1025     \_ /bin/bash
>> /opt/sge/sunfire/spool/silab03/job_scripts/538
>> 31188 31189 31188 31188 1025         \_ sleep 2222222
>
> Maybe using exec?
>
> #--
> export KRB5CCNAME=/tmp/ticket.`echo $PWD | awk -F / '{ print $NF}'`
> exec /usr/bin/pagsh -c "$2"
> #--
>
> -- Reuti
>
>
>> The pag script (PID 30673 ) seems to have the same PGID as the execd.
>> Maybe this is the source of my problem. Does anyone know how to write
>> then a good pag script that results in the same PGID structure as for a
>> job that uses /usr/bin/pagsh?
>>
>> Duc
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
>> For additional commands, e-mail: users-help at gridengine.sunsource.net
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
> For additional commands, e-mail: users-help at gridengine.sunsource.net

---------------------------------------------------------------------
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