[padb-users] start using padb on TORQUE

Jie Cai Jie.Cai at anu.edu.au
Thu Nov 25 23:27:00 GMT 2010


Hi Ashley,

On 26/11/10 08:54, Ashley Pittman wrote:
>
> I didn't know that!  Then I'm doubly intrigued to find out how you made it work, do you change the group of the inner padb processes or do you change the group of the spawned gdb process?
>
> Ashley,
>
>    

We change the group of spawned processes rather than inner padb processes.

(1) in get_remote_env() using following code to obtain $pbs_gid, and 
open 'environ' file:

my $project = `stat /proc/$pid|grep Gid|cut -d' ' -f 18|cut -d')' -f 1`;
$pbs_gid = substr($project, 0, 3);

my @env_tmp = `newgrp $pbs_gid cat /proc/$pid/environ`;

(2) In gdb_start(), change the original line 'my $cmd = "gdb 
--interpreter=mi -q";'   to
'$cmd = "newgrp $pbs_gid gdb --interpreter=mi -q";'

Hope this helps, and please let us know if you need more information.

Kind Regards,
Jie

-- 
Jie Cai                         Jie.Cai at anu.edu.au
ANU Supercomputer Facility      NCI National Facility
Leonard Huxley, Mills Road      Ph:  +61 2 6125 7965
Australian National University  Fax: +61 2 6125 8199
Canberra, ACT 0200, Australia   http://nf.nci.org.au
-----------------------------------------------------






More information about the padb-users mailing list