GithubHelp home page GithubHelp logo

Comments (13)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 10, 2024
This seems like a great feature, however the dshgroup module is meant to
be compatible with Junichi Uekawa's dsh (Dancer's Shell)

 http://www.netfort.gr.jp/~dancer/software/dsh.html.en

and I don't think the version of dsh group files in that code supports 'include'
style statements.

However, since group files written for dsh would still work with pdsh even
after extra features are added (it just won't work the other way around)
perhaps this is ok. Let me think on it for a bit.

Another option is that you could try using genders, which is much more flexible.
You have all your hosts in one file, and hosts can be assigned multiple 
attributes
(with optional values).

https://computing.llnl.gov/linux/genders.html

Original comment by [email protected] on 14 Apr 2011 at 5:01

  • Changed state: Accepted

from pdsh.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 10, 2024
Does dsh allow for comments?  If so, perhaps you could do the following:

#include myGroupFile
#include /etc/dsh/group/systemGroupFile

This would give you the ability to parse for additional files to include while 
allowing dsh to ignore them.

Scott

Original comment by [email protected] on 8 Aug 2011 at 6:23

from pdsh.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 10, 2024
That is a good idea if there is still interest in having dshgroup files support 
an include statement. I think the original person that opened this bug found 
that genders was a good solution.

Original comment by [email protected] on 8 Aug 2011 at 10:21

from pdsh.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 10, 2024
I am certainly interested in the ability to have include statements, though I 
may be in the minority.

Original comment by [email protected] on 10 Aug 2011 at 8:53

from pdsh.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 10, 2024
Ok, I will see if I can get this into the next release.

Original comment by [email protected] on 10 Aug 2011 at 9:00

from pdsh.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 10, 2024
If you need any assistance in testing it, let me know.  I have access to HP-UX, 
SLES, RHEL, and Mac OS X (10.6).

Original comment by [email protected] on 10 Aug 2011 at 9:03

from pdsh.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 10, 2024
This issue was closed by revision r1352.

Original comment by [email protected] on 12 Aug 2011 at 11:08

  • Changed state: Fixed

from pdsh.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 10, 2024
Ok, I've committed the changes to the trunk in r1325 (as you can see above).
I added some simple tests to the testsuite, so if you have time to test, please 
do!
I would love to know how the testsuite does on HP-UX as well (make check).

Thanks!
mark

Original comment by [email protected] on 12 Aug 2011 at 11:09

from pdsh.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 10, 2024
Hi Mark,

The test on the Mac went well.  HP-UX, however, croaked during the link as 
strsep does not exist.  I swapped strsep for strtok, which allowed gmake to 
complete without errors (though there were a few warnings here and there).  I 
have yet to get everything to work, as the version of pdsh that ships with 
HP-UX's DSAUtilities package (version 2.16) includes a modified mod.c and 
dshbak (if you want to see these files, I can forward them to you).

I'll have more time next week to work on this, but wanted to get you an update.

Scott

Original comment by [email protected] on 14 Aug 2011 at 6:56

from pdsh.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 10, 2024
[deleted comment]

from pdsh.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 10, 2024
Wow, thanks for doing all the testing! Sorry, I used strsep() without thinking, 
thanks for pointing out the fix. I'll make the same change you did, or maybe 
try to reuse
some code (already have list_split() to split a line on arbitrary characters, 
so I'm
not sure why I used something different)

Is it ok to open a separate issue for the HP-UX issues?

Original comment by [email protected] on 15 Aug 2011 at 8:46

from pdsh.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 10, 2024
It's ok with me.

Original comment by [email protected] on 15 Aug 2011 at 9:07

from pdsh.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 10, 2024
This issue was updated by revision r1357.


Use strtok instead of strsep when reading wcoll file for portability.
Thanks to <macnfaf at gmail dot com> for the suggested change.

Original comment by [email protected] on 19 Aug 2011 at 9:33

from pdsh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.