[torqueusers] Re: [torquedev] pbsdsh oddity
Garrick Staples
garrick at usc.edu
Tue Jul 15 23:38:28 MDT 2008
> Obviously we can script around that locally, but I was
> wondering if pbsdsh should be a bit smarter about its
> comparisons, say by checking if the hostname given
> by the has a dot and the hostname in uname has a dot
> then retokenising on "." and comparing the short form
> hostnames.
That's a good idea. Can you try this simple version?
Index: src/cmds/pbsdsh.c
===================================================================
--- src/cmds/pbsdsh.c (revision 2249)
+++ src/cmds/pbsdsh.c (working copy)
@@ -644,7 +644,7 @@
for (i=0; i<numnodes; i++)
{
- if (!strcmp(allnodes+(i*PBS_MAXNODENAME), targethost))
+ if (!strncmp(allnodes+(i*PBS_MAXNODENAME), targethost, strlen(targethost)))
{
if (vnode==0)
return(i);
--
Garrick Staples, GNU/Linux HPCC SysAdmin
University of Southern California
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.supercluster.org/pipermail/torqueusers/attachments/20080715/236be5fd/attachment.bin
More information about the torqueusers
mailing list