Re: elog command line submission, posted by Stefan Ritt on Tue Nov 16 13:25:35 2010
|
> Hi,
>
> I am playing with the elog automatic subscription script, but somehow I am failing in submitting an entry.
> I am using a syntax as this:
>
> echo test | elog -h 127.0.0.1 -p 8085 -d /usr/local/elogbooks/Elog -l "Sub Elog" -a "Type=MyType" -x -u user passwd
>
> and I get a message which says:
> "cannot get host name: Success"
>
> which seems contradictory and also there is no entry submitted.
>
> The command is executed on the host where the elog is running, the port and directory are taken from the cfg File.
>
> What is my mistake, where is my misunderstanding of the documentation?
>
> Any hints appreciated.
>
> Erik
The "-d" option is certainly wrong. This is only used when running elog under Apache. But otherwise it should work. I
tried it myself and it went fine. Try to add a "-v" flag to see verbose output. |
Text Limit for Subject line, posted by Robert Risher on Wed Feb 25 22:01:32 2009
|
Is there any way I can limit the ammount of characters in the Subject line?
Thank you, |
Re: Text Limit for Subject line, posted by Stefan Ritt on Thu Feb 26 10:01:37 2009
|
Robert Risher wrote: |
Is there any way I can limit the ammount of characters in the Subject line?
Thank you,
|
Use the
Format Subject = ...
option as described in the manual. The last parameter is the "maximum number of characters allowed". |
Restrict edit - issue, posted by Heinzmann on Mon Mar 9 17:55:30 2009
|
Hello,
please could you help me.
The Restrict edit funktion is not working. Because my user Dirk is able to edit/delete the text from user Peter:
via select and edit.
Delete the - keep original text here - and then submit.
The whole text disappeared from the user Peter
I have tried both Restrict edit = 0 and then Restrict edit = 1
Please note my config:
[global]
port = 80
Password file = C:\Program Files\ELOG\test.txt
Admin user = admin3
Self register = 1
Login expiration = 0
[demo]
Theme = default
Comment = General linux tips & tricks
Attributes = Author, Type, Category, Subject
Options Type = Routine, Software Installation, Problem Fixed, Configuration, Other
Options Category = General, Hardware, Software, Network, Other
Extendable Options = Category
Required Attributes = Author, Type
Page Title = ELOG - $subject
Reverse sort = 1
Quick filter = Date, Type
Login user = Peter, Dirk, Kervin, Frank, MichaelH
Password file = C:\Program Files\ELOG\user.txt
Self register = 1
Login expiration = 0
Restrict edit = 0
Thanks |
Re: Restrict edit - issue, posted by Heinzmann on Tue Mar 10 16:33:52 2009
|
Heinzmann wrote: |
Problem solved, I had to set the 'preset funktion' additionally |
|
How ca I delete / hide the Elog Icon and Labels like ELOG V2.7.5-2175, posted by Heinzmann on Wed Mar 11 15:51:36 2009
|
Hi Stephan,
How can I delete / hide the Elog Icon 
and Labels like ELOG V2.7.5-2175 ?
Thanks,
Michael
|
Re: How ca I delete / hide the Elog Icon and Labels like ELOG V2.7.5-2175, posted by Heinzmann on Thu Mar 12 21:21:00 2009
|
Heinzmann wrote: |
Hi Stephan,
How can I delete / hide the Elog Icon 
and Labels like ELOG V2.7.5-2175 ?
Thanks,
Michael
|
Sorry,
found it:
Bottom text = <center>Hello</center>
Bottom text login = <center>Login Hello</center> |
Re: Restrict edit - issue, posted by Stefan Ritt on Wed Mar 25 10:35:59 2009
|
Heinzmann wrote: |
Hello,
please could you help me.
The Restrict edit funktion is not working. Because my user Dirk is able to edit/delete the text from user Peter:
via select and edit.
Delete the - keep original text here - and then submit.
The whole text disappeared from the user Peter
I have tried both Restrict edit = 0 and then Restrict edit = 1
Please note my config:
[global]
port = 80
Password file = C:\Program Files\ELOG\test.txt
Admin user = admin3
Self register = 1
Login expiration = 0
[demo]
Theme = default
Comment = General linux tips & tricks
Attributes = Author, Type, Category, Subject
Options Type = Routine, Software Installation, Problem Fixed, Configuration, Other
Options Category = General, Hardware, Software, Network, Other
Extendable Options = Category
Required Attributes = Author, Type
Page Title = ELOG - $subject
Reverse sort = 1
Quick filter = Date, Type
Login user = Peter, Dirk, Kervin, Frank, MichaelH
Password file = C:\Program Files\ELOG\user.txt
Self register = 1
Login expiration = 0
Restrict edit = 0
Thanks
|
First, you need "Restrict edit = 1" in your config file. Then for each edit operation the system checks the currently logged in user against the "Author" attribute. Therefore, the "Author" attribute must contain the full user name. This can be achieved by adding
Preset Author = $long_name
Locked Attributes = Author
as described in the manual. |
|