perfsonar-user - R: [perfsonar-user] Posthook command line parameters
Subject: perfSONAR User Q&A and Other Discussion
List archive
- From: Gaetano Vocca <>
- To: Aaron Brown <>
- Cc:
- Subject: R: [perfsonar-user] Posthook command line parameters
- Date: Tue, 13 Jan 2015 18:16:59 +0100
I understand, thank you. Actually I was trying to investigate about how to change the code in order to let posthook support command line options. I see that, currently, the strtok acts on the configuration line, detecting tokens by means of the blank character. In order to allow command line options, I suppose that this behavior should be changed to grab the whole line, detect the executable name, the parameters and the eventual following comment. This new behavior could have a bad side effect in case bwctld.conf supports lists of values for one single configuration attribute, this was the idea behind my question (poorly worded, sorry).
Currently I worked around this point by creating a symlink to my original posthook executable, detecting this name within the script and acting consequentially.
Thanks again Gaetano
Da: Aaron Brown [mailto:]
Hey Gaetano,
If you’re asking if there’s a syntax problem with having a posthook like “/path/to/posthook -i -w 1024”, then no, there isn’t. The “syntax error” thing is a poor error message. bwctld tries to execute the script with the “—validate” flag when it starts up, and since it doesn’t support the parameters, it’s bombing out and printing out a syntax error message.
Cheers, Aaron
|
- [perfsonar-user] Posthook command line parameters, Gaetano Vocca, 01/12/2015
- Re: [perfsonar-user] Posthook command line parameters, Aaron Brown, 01/13/2015
- R: [perfsonar-user] Posthook command line parameters, Gaetano Vocca, 01/13/2015
- Re: [perfsonar-user] Posthook command line parameters, Aaron Brown, 01/13/2015
- R: [perfsonar-user] Posthook command line parameters, Gaetano Vocca, 01/13/2015
- Re: [perfsonar-user] Posthook command line parameters, Aaron Brown, 01/13/2015
- R: [perfsonar-user] Posthook command line parameters, Gaetano Vocca, 01/13/2015
- Re: [perfsonar-user] Posthook command line parameters, Aaron Brown, 01/13/2015
Archive powered by MHonArc 2.6.16.