Comments (13)
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.
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.
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.
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.
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.
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.
This issue was closed by revision r1352.
Original comment by [email protected]
on 12 Aug 2011 at 11:08
- Changed state: Fixed
from pdsh.
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.
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.
[deleted comment]
from pdsh.
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.
It's ok with me.
Original comment by [email protected]
on 15 Aug 2011 at 9:07
from pdsh.
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)
- option to remove .hostname when doing a rpdcp HOT 1
- "/": Owner not root, current uid, or pdsh executable owner HOT 7
- Random pick in host list HOT 1
- Patch to add SLURM partition support to pdsh slurm module HOT 6
- Undesirable change in 2.28 when there is no host output. HOT 9
- genders: pdsh -X excludes more hosts than expected HOT 2
- allow mix of -P and -w in slum plugin HOT 4
- output to named file[s] HOT 2
- Output all exit codes to stdout HOT 4
- pdsh slow when using a few thousand hosts and genders HOT 2
- Header compatibility with slurm 2.6 HOT 1
- Use libgenders.a when compiling with --enable-static-modules HOT 5
- pdcp uses local absolute path to pdcp on remotes HOT 3
- Add lastest release to Download link HOT 1
- Torque module doesn't support job arrays HOT 1
- Change fanout at runtime HOT 4
- history file not written in Debian HOT 9
- Support in Centos7
- segfault in pdsh-2.29 read_wcoll() when file == NULL
- support multiple globs in host specification HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pdsh.