astonished icon, posted by Elaine Cristina Franchini dos Anjos on Fri Jul 14 21:47:14 2006
|
Hi Stefan,
I've been trying to use the astonished icon, but the preview or entry
display shows only a broken image.
I found in the elogd.c at line 5556 :
{"8o", "<img src=\"%sicons/eek.png\">"}
I copied the "astonished.png" to "eek.png" and it worked.
Is it the reason of the problem ? ?)
Thanks a lot.
Regards,
Elaine |
Re: astonished icon, posted by Elaine Cristina Franchini dos Anjos on Wed Jul 19 15:05:02 2006
|
Stefan Ritt wrote: |
Elaine Cristina Franchini dos Anjos wrote: | Hi Stefan,
I've been trying to use the astonished icon, but the preview or entry
display shows only a broken image.
I found in the elogd.c at line 5556 :
{"8o", "<img src=\"%sicons/eek.png\">"}
I copied the "astonished.png" to "eek.png" and it worked.
Is it the reason of the problem ? ?) |
Actually the C code should be "astonished.png" instead of "eek.png". I changed that in revision 1704. BTW, thanks for the Brazilian translation.  |
Thank you for your quick response ! 
I'm glad to be able to contribute !
Regards,
Elaine |
moving eLog to another computer, posted by Ekaterina Korobkina on Wed Sep 30 18:57:44 2020
|
Our Unix server died, so we decided to move our old eLog to the new server, running Mac OSX. Elog version is earlier then 2013, I can not say
I read that on OSX eLog must be intalled through "make" command
if I need to install eLog first, how to add all old information later?
|
Re: Mass postings, posted by Erik Iverson on Mon Jun 9 15:57:15 2008
|
Stefan Ritt wrote: |
mike cianci wrote: |
I am setting this up as instrument log in a multi-hospital system, where there will be multiple instruments, in multiple departments, at multiple facilities.
I am using the "Top Group" function to keep the books separate so operators from one instrument/department/facility don't contaminate another instrument/department/facility's logbook.
What I am wondering is there someway to set it up so that a system wide manager could post a message to 5 individual logbooks for 5 identical instruments at 5 different locations all at once (one ELOG server)?
I hope this made sense. Thank you for your help.
|
Unfortunately this is not possible at the moment. You would have to use the menu command "copy to" and enable it for the admin user. Then you create your entry, and click on "copy to" once for each location you want to copy this entry.
|
I found a way to get this to work. Define a "Messages" logbook for the messages to be broadcast. None of the user installations need access to it. Use "Execute new = " to execute a script calling the elog command line client passing the message on to each target logbook. Example:
--- elogd.cfg snippet begin ---
[Messages]
...
Execute new = mass_post.sh $text &
--- elogd.cfg snippet end ---
--- mass_post.sh begin ---
#!/bin/sh
elog -a Sender="System Administrator" -l "Logbook 1" $@
elog -a Sender="System Administrator" -l "Logbook 2" $@
elog -a Sender="System Administrator" -l "Logbook 3" $@
--- mass_post.sh end ---
The $@ expands to all the command line arguments, so the $text field, with all its spaces, gets passed correctly. Sorry I showed you the example in bash/linux rather than in Windows, but I don't know Windows real well - you're better off translating into it yourself than my untested attempts. The one thing I can tell you is that the "Execute new" command must include the "background fork". In Linux this is provided by the & at the end of the line. In windows you'll need to use
Execute new = start "dummy" /min mass_post.bat
to background the process. This is ESSENTIAL. Without backgrounding the batch file, the elogd server will go into an infinite loop. The parent process will wait for the child process to exit before continuing. elogd is single-threaded, so the child process cannot start until the parent process has completed its current task (which is waiting for the child process to exit).
You may need to tweak the above a little if you want to pass variable attributes to the script instead of defining them all in the script itself.
|
"Full" view formatting, posted by Erik Iverson on Thu Mar 19 02:50:16 2009
|
I have a logbook I use to capture machine settings. There are many (~30) different attributes defined. I've defined the "Summary" view via "List display" in such a way that not all the attributes are displayed in the summary list, because there's no practical way to fit the 30 different attributes in 30 rows across the screen, and there's no need to have every attribute shown in the summary view. I would like to define something for the "Full" view that lets me put one (or more, but not all) attributes per line; much like the single-entry view does now, just with multiple entries. So a "Full" listing would look like
ID: 1
Attribute1: Value1
Attribute2: Value2
Attribute3: Value3
Text...
ID: 2
Attribute1: Value1
Attribute2: Value2
Attribute3: Value3
Text...
rather than
ID Attribute1 Attribute2 Attribute3
1 Value1 Value2 Value3
Text...
2 Value1 Value2 Value3
Text...
etc.
Any suggestions?
Thanks as always for a wonderful piece of software! |
Re: Simple Math, posted by Erik Iverson on Tue Apr 14 17:57:56 2009
|
Stefan Ritt wrote: |
mike cianci wrote: |
Sorry to bother you. I could see in past Forum entries that the question of "Simple Math" has come up before, although the answers were not all that simple.
Can you do simple math (i.e. attribute A + attribute B = attribute C) in ELOG ?
Thank you for putting up with my questions.
Mike
|
No, you can't. The only way is to export a logbook to CSV, then import it in a spreadsheet program, then do the math there.
|
You can pass numerical attributes to an external command via "Execute new =...". This external command can then do the math and pass the result _back_ to the logbook either as a new entry or as an edit with the command-line client "elog".
For example, given a new entry with (numerical) attributes A and B, if you have
Execute new = add_them.pl $A $B $message id
in your elog.cfg file, then $A and $B will be passed to the add_them.pl perl script. Now have the perl script (or bc, or whatever you want to use) do the appropriate math and submit the result. For example, your perl script might include
$C=$A+$B
$D=$A*$B
elog -a C=$C ... -e "$message id" "Sum as edit"
elog -a D=$D ... "Product as new entry"
|
Pre-populate Attachments in URL, posted by Erik Iverson on Thu Aug 6 22:29:12 2009
|
Is there a way to pre-populate the new entry window with one or more attachments? Per the documentation, this is easy to do with attributes, i.e., http://localhost:8070/demo/?cmd=New&pauthor=joe&ptype=Info as a URL or bookmark will do it. I'd like to do the same thing with attachments, for example http://localhost:8070/demo/?cmd=New&pauthor=joe&ptype=Photograph&attfile1=picture1.jpg&attfile2=picture2.jpg might prepopulate two attachments, giving me an edit window all ready to enter the brief description represented by the two pictures. |
Any way to paste clipboard into entry?, posted by Erik Iverson on Thu Jan 7 21:41:43 2010
|
Is there any way to directly paste an image from a Windows clipboard into an elog entry page? It's obvious
for uploading a file, but many of my users say that they never make a file, they just want to paste in an image
already onscreen. |