> > 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,
:) |