Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon5.gif   propogating messages through logbooks, posted by kenzo Abrahams on Thu Oct 29 12:30:43 2015 
    icon2.gif   Re: propogating messages through logbooks, posted by Andreas Luedeke on Fri Oct 30 15:52:33 2015 
       icon2.gif   Re: propogating messages through logbooks, posted by kenzo Abrahams on Mon Nov 2 07:39:07 2015 elogd.cfgextractTable.py
          icon2.gif   Re: propogating messages through logbooks, posted by kenzo Abrahams on Mon Nov 2 08:37:06 2015 
Message ID: 68175     Entry time: Mon Nov 2 08:37:06 2015     In reply to: 68174
Icon: Reply  Author: kenzo Abrahams  Author Email: kenzoabrahams@gmail.com 
Category: Question  OS: Linux  ELOG Version: 3.1.1 
Subject: Re: propogating messages through logbooks 
>  
> > Hi Kenzo,
> > I think it would help me to understand your problem, if you would provide a minimal configuration file with two
> > logbooks.
> > 
> > There is no ELOG internal feature to propagate data from one logbook to another; 
> > using a shell script is the only method I know.
> > But you could easily put your script into the background: 
> > ELOG can handle multiple parallel request, by handling one request after the other.
> > 
> > Kind Regards, Andreas
> 
> Hi Andreas
> 
> Im using python to do the scripting. Everything works fine until it comes to submitting the entry to my logbook.
> The extractTable.py file is the one running the command to submit to elog.
> I see now that im starting a subprocess in my python script (subprocess.call) and thats why its not finishing.
> Could you perhaps suggest how I would go about doing this by putting my scripts in the
> background? I might have to look at multiprocessing in python as well. The reason im using python is because im
> doing alot of file processing as well. I do have to add that this method works perfectly when i just run the python
> on its own. As soon as i run it by submiting an elog entrie from the browser it hangs on the subprocess.call method.
> 
> Regards, Kenzo

Hi Andreas

I sorted my problem out, I had to use threading in python such that I can time the submissions to the elog server.
Everything works fine now. Thank you for the assistance.

Regards
Kenzo
ELOG V3.1.5-fe60aaf