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: 67888     Entry time: Thu May 7 02:25:16 2015     In reply to: 67887     Reply to this: 67889   67894
Icon: Reply  Author: Francois Cloutier  Author Email: Francois@fcmail.ca 
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 ?
> > 
> > Thanks :)
> 
> Quick and simple answer: No.
> 
> But please explain me what your case is. Maybe this can be done differently.

That's clear :)

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

I investigate a little but I found that :

a) I couldn't make shell command to execute while elogd was running as a service (I'm running windows and $shell was just returning weird stuff ); shell script was 
working only when I launch elogd.exe from a command line:

-elogd as a Service running the following : Subst Infographiste = $shell(dir c:\) 
will return : Shell execution not enabled via -x flag

-modifying the Windows Service to add "-X" and running the following :Subst Infographiste = $shell(dir c:\) 
will return : a empty attribute

-running elogd "-x" from a command line, the following : Subst Infographiste = $shell(dir c:\) 
will return : the dir result..

(I also tried to change under witch user the service was running..)

b) I just couldn't figure how to build that script....

But that would be so nice ! I can see so many situations where I could use such a scenario (loading options from another logbook or from a txt/csv file 
somewhere...)

Thanks,

:)
ELOG V3.1.5-fe60aaf