Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon5.gif   Using preset text files , posted by soren poulsen on Mon May 4 11:22:40 2009 
    icon2.gif   Re: Using preset text files , posted by soren poulsen on Mon May 4 11:25:15 2009 
    icon2.gif   Re: Using preset text files , posted by Stefan Ritt on Mon May 4 11:50:30 2009 
       icon2.gif   Re: Using preset text files , posted by soren poulsen on Mon May 4 18:06:01 2009 
Message ID: 66344     Entry time: Mon May 4 18:06:01 2009     In reply to: 66343
Icon: Reply  Author: soren poulsen  Author Email: soren.poulsen@cern.ch 
Category: Question  OS: Linux  ELOG Version: 2.7.5-2172 
Subject: Re: Using preset text files  

Stefan Ritt wrote:

 

soren poulsen wrote:

Hi,

I am trying the Preset text option from the documentation: like:

Attributes = Author, Type
Options Type = Network check{1}, System check{2}

{1} Preset text = network.txt
{2} Preset text = system.txt

I have two questions:

1. Where are the preset text files searched from ? I guess I could put them in the logbook (and specify a relative path like in this example) but it appeared only to work when I specifiy an abcolute path. That is even better in my case.

2. How do I specify line feeds in the file ? I tried Linux and Windows new line characters - but I always end up with just  one line in my e-log. I would really like a multi-line form.

Soren

 

Without path, the file must reside in the "scripts" subdirectory.

For the multi-line form, it depends how you want to format your elog entry. If you format in "plain", the simple line breaks are sufficient. If you format in HTML, your preset file must be in HTML as well, so a line break has to be a <br> tag. If you format in ELCode, a simple line break again would be ok. 

 Thanks for the hints on the "scripts" dir.  For the formatting, that's clear. I started with the sample "network.txt" file from the doc and the default encoding (HTML), so that did (of course) not render correctly (before inserting a few tags).

Soren

 

ELOG V3.1.5-fe60aaf