ID |
Date |
Icon |
Author |
Author Email |
Category |
OS |
ELOG Version |
Subject |
2072
|
Sat Nov 11 18:36:44 2006 |
| Stefan Ritt | stefan.ritt@psi.ch | Question | Windows | 2.6.2.1723 | Re: Conditional Email Notification by a text file |
Grant Jeffcote wrote: | I can't seem to get this working when Elogd is started as a service though?
Starting elogd (-x) manually works fine and with the -v switch I can see it is operating correctly but obviously the service option is preferred.
The service ("D:\ELOG\elogd.exe" -x -D -c "D:\ELOG\elogd.cfg") is starting correctly using the -x switch (as I use the shell command for other elog options) but it doesn't seem to send the mail.
Is this a 'feature' ;o) |
Sure 
But seriously, elogd cannot be started as a service under windows by opening a command window and executing above command line. Under windows, it has to be installed and run as a service, which is usually done by the installer. To change it, you do that by selecting My Computer, then right mouse click and Manage, then you select Serviced and Applications, then Services, then you will see the elogd service. A double click on it opens the corresponding properties, where you will find the command line, usually
"C:\Program Files\ELOG\elogd.exe" -D -c "C:\Program Files\ELOG\elogd.cfg"
Here you have to change the command line parameters to add the -x flag. Then you stop and restart the service. |
2073
|
Sat Nov 11 18:48:48 2006 |
| Grant Jeffcote | grant@jeffcote.org | Question | Windows | 2.6.2.1723 | Re: Conditional Email Notification by a text file |
Thanks Stefan,
I understand that and the registry entry that I use (for the service) is what I had quoted below.
The problem I have is that when Elog is started as a service using the -x switch then the shell command using An's mail list suggestion does not work? Starting the elogd daemon manually (ie using the command prompt) does work.
I have other features within my configuration which use the 'execute new $shell' option which works perfectly so I know that the -x switch is functional within the service.
BR Grant
Stefan Ritt wrote: |
Grant Jeffcote wrote: | I can't seem to get this working when Elogd is started as a service though?
Starting elogd (-x) manually works fine and with the -v switch I can see it is operating correctly but obviously the service option is preferred.
The service ("D:\ELOG\elogd.exe" -x -D -c "D:\ELOG\elogd.cfg") is starting correctly using the -x switch (as I use the shell command for other elog options) but it doesn't seem to send the mail.
Is this a 'feature' ;o) |
Sure 
But seriously, elogd cannot be started as a service under windows by opening a command window and executing above command line. Under windows, it has to be installed and run as a service, which is usually done by the installer. To change it, you do that by selecting My Computer, then right mouse click and Manage, then you select Serviced and Applications, then Services, then you will see the elogd service. A double click on it opens the corresponding properties, where you will find the command line, usually
"C:\Program Files\ELOG\elogd.exe" -D -c "C:\Program Files\ELOG\elogd.cfg"
Here you have to change the command line parameters to add the -x flag. Then you stop and restart the service. |
|
2074
|
Sat Nov 11 18:54:59 2006 |
| Stefan Ritt | stefan.ritt@psi.ch | Question | Windows | 2.6.2.1723 | Re: Conditional Email Notification by a text file |
Grant Jeffcote wrote: | The problem I have is that when Elog is started as a service using the -x switch then the shell command using An's mail list suggestion does not work? Starting the elogd daemon manually (ie using the command prompt) does work. |
When elogd runs as a service, it needs all paths to be absolute, like having the full c:\dir\subdrir\.... Do you have this? What about file access permission? You can try to do a Preset text = <file> with your email list, to see if elogd can actually access this file at all. |
2075
|
Sat Nov 11 21:31:33 2006 |
| Grant Jeffcote | grant@jeffcote.org | Question | Windows | 2.6.2.1723 | Re: Conditional Email Notification by a text file |
All paths are absolute and file permissions set to 'everyone'. 'Preset text' results in the contents of the text file being shown so access doesn't seem to be the problem here. Can you reproduce this?
Thx & rgrds
Stefan Ritt wrote: |
Grant Jeffcote wrote: | The problem I have is that when Elog is started as a service using the -x switch then the shell command using An's mail list suggestion does not work? Starting the elogd daemon manually (ie using the command prompt) does work. |
When elogd runs as a service, it needs all paths to be absolute, like having the full c:\dir\subdrir\.... Do you have this? What about file access permission? You can try to do a Preset text = <file> with your email list, to see if elogd can actually access this file at all. |
|
2076
|
Mon Nov 13 18:10:42 2006 |
| Eric Krise | eric.krise@cmicompany.com | Question | Windows | 2.6.2-1748 | Report printing |
Is there a way to print a summary of all (or selected) log books on a scheduled basis, say like every morning @ 7:00 am? I would like a printed copy of our daily logs (24 hr period). Thanks Eric |
2077
|
Mon Nov 13 20:22:02 2006 |
| Stefan Ritt | stefan.ritt@psi.ch | Question | Windows | 2.6.2-1748 | Re: Report printing |
Eric Krise wrote: | Is there a way to print a summary of all (or selected) log books on a scheduled basis, say like every morning @ 7:00 am? I would like a printed copy of our daily logs (24 hr period). Thanks Eric |
You can obtain the last 24hr period with the parameter last=1. Following command will return this last day for the forum
http://midas.psi.ch/elogs/Forum/?printable=1&last=1
Now you need to set up some script which calls this once a day and then convinces the browser to print that page. But I have no idea how to perform this.
Another option is to print the xxxxxxa.log files of the elogd server directly. There is already one file per day, and the original reason for that is exactly what you ask for: You can print each day directly. Now you need a script which searched for the last day and prints that. |
2080
|
Wed Nov 15 20:22:29 2006 |
| Stefan Ritt | stefan.ritt@psi.ch | Question | Windows | 2.6.2.1723 | Re: Conditional Email Notification by a text file |
Grant Jeffcote wrote: | Can you reproduce this? |
Yes, I get the same error. Shell substitution does not work when elogd is started as a service. This is a problem deep inside the service management of Windows and I do not know any solution for that. Sorry. |
2081
|
Thu Nov 16 14:07:32 2006 |
| An Thai | thaithan@gmx.de | Question | Windows | 2.6.2.1723 | Re: Conditional Email Notification by a text file |
I have found the way to get it work properly.
- Open services management (Right click My Computer -> Manage -> Services & Applications -> Services)
- Change elogd statup type to Manual. ->> SORRY: It should be set to Disable !!!
- Create *.bat file in the folder ELOG with Notepad. Type elogd -x in the file.
- Create a Scheduled Task (Start -> Programs - Accessories - System Tools -> Scheduled Tasked). Run Add Scheduled Task . A Wizard will be openned.
- Click Next -> Browser -> open your ELOG folder and select your created *.bat -> select radio button "When my computer starts" -> Next -> type your admin password for the computer -> select Open advanced properties for this task when I click finish.
Good luck!
This setting has worked great since a month. |