Hi all:

I was reading the Environment part of the SEC manpage where isbt
discusses the SECRC variable. It doesn't answer my question as to what
happens if there are command line arguments passed to SEC
(e.g. --pid=/var/log/sec_instance1 ) as well as a SECRC set in the
environment. The man page says:

  .... Each remaining line is added to the argv array of SEC as a
  *single* element.  Also, the lines are added to argv in the order
  they appear in the resource file.

So what happens to existing lines in the ARGV that are set on the
command line? Are the SECRC elements:

  1) appended to the argv list that was set up from the command line
      (making the SECRC items override the values set on the command
       line)

  2) prepended to the argv list that was set up from the command line
       (making the command line arguments override the values set
       by SECRC)

  3) replacing the argv list set on the command line

>From the code (which uses push rather than unshift) it looks like it's
option 1 which I don't think is as useful as option 2.

I expect the command line arguments to take precedence over the SECRC
arguments.

If you don't have duplicate arguments I don't think it matters which
comes first. The only time I can see it being a problem is for --conf
where it changes the processing order of the conf files. I don't think
changing the order of --input files really matters in a practical way.

So should the command line args take priority over the SECRC arguments?

--
                                -- rouilj
John Rouillard
===========================================================================
My employers don't acknowledge my existence much less my opinions.

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
Simple-evcorr-users mailing list
Simple-evcorr-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users

Reply via email to