Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon5.gif   Preloading Options or Moptions from a text file or CSV, posted by Francois Cloutier on Wed May 6 21:25:34 2015 
    icon2.gif   Re: Preloading Options or Moptions from a text file or CSV, posted by Stefan Ritt on Wed May 6 21:30:13 2015 
       icon2.gif   Re: Preloading Options or Moptions from a text file or CSV, posted by Francois Cloutier on Thu May 7 02:25:16 2015 
          icon2.gif   Re: Preloading Options or Moptions from a text file or CSV, posted by Stefan Ritt on Thu May 7 09:48:32 2015 
             icon2.gif   Re: Preloading Options or Moptions from a text file or CSV, posted by Francois Cloutier on Thu May 7 14:37:39 2015 
          icon2.gif   Re: Preloading Options or Moptions from a text file or CSV, posted by Andreas Luedeke on Mon May 11 22:42:44 2015 
    icon2.gif   Re: Preloading Options or Moptions from a text file or CSV, posted by Jimmy Bria on Fri Apr 1 18:45:01 2016 
       icon2.gif   Re: Preloading Options or Moptions from a text file or CSV, posted by Stefan Ritt on Mon Apr 4 13:59:42 2016 
Message ID: 67894     Entry time: Mon May 11 22:42:44 2015     In reply to: 67888
Icon: Reply  Author: Andreas Luedeke  Author Email: andreas.luedeke@psi.ch 
Category: Question  OS: Windows  ELOG Version: 310.3 
Subject: Re: Preloading Options or Moptions from a text file or CSV 
> > > Title says all :)
> > > 
> > > Is it possible to preload Options or Moptions from a text file or CSV instead of being load from the elogd.conf ?
> > > 
> 
> So basically, I have a list of 5-10 workers. I'll have to choose one for each entry I make into the logbook. But these workers will change from time to time 
> (students) and I don't want the staff to manipulate the config file manually..("Extendable options" is not an option as I will get to many "Darth Vader" entry for 
> sure..)
> 
> I asked if I could populate that option box from another logbook attribute and Andreas told me only possible via external scripts. 
> https://midas.psi.ch/elogs/Forum/67877

Hi Francois. 
if those worker lists do change rather infrequently, then I would have an idea how to do it:

You could have an application that updates the Options or MOptions lists in the elogd.cfg file at midnight, 
and in case they actually did change the application restarts the elogd process afterwards.

I use such a mechanism to update my user list from our companies LDAP service every second Monday of a month at midnight.
This avoids misspelled user names or wrong email addresses and takes care that all employees (~2000) can log-in to our ELOG.
The passwords are handled anyway by kerberos authentication.

But I admit that it would be a cool feature to have "includes" in the configuration file for dynamic data sources. 
Shell scripts of course are useless for "Option" definitions: they would only be executed at start-up anyway,
and that can be accomplished as well by the above mentioned automatic changes to the config file.

Kind Regards
Andreas
ELOG V3.1.5-3fb85fa6