ID |
Date |
Icon |
Author |
Author Email |
Category |
OS |
ELOG Version |
Subject |
68967
|
Fri May 10 04:34:36 2019 |
| Alan Grant | agrant@winnipeg.ca | Question | Windows | 3.1.2 | Execute attribute |
Apart from an inline shell command that can be run with the Execute attribute, is it possible to run an external script file? I would like to run a Powershell script with the Elog attribute data parameters passed to it upon Submit New entry. |
68968
|
Fri May 10 08:19:08 2019 |
| Stefan Ritt | stefan.ritt@psi.ch | Question | Windows | 3.1.2 | Re: Execute attribute |
I don't understand your question. There is no "inline" vs. "external" script. Using the "execute new = <command>", you run a script on the server side. Can be powershell under Windows or bash/csh under Linux. I remember however that there has been issues under recent windows in passing parameters to the shell. Linux certainly works fine, we usse it all the time.
Alan Grant wrote: |
Apart from an inline shell command that can be run with the Execute attribute, is it possible to run an external script file? I would like to run a Powershell script with the Elog attribute data parameters passed to it upon Submit New entry.
|
|
68969
|
Fri May 10 15:01:52 2019 |
| Alan Grant | agrant@winnipeg.ca | Question | Windows | 3.1.2 | Re: Execute attribute |
I think it was just a matter of my specific interepretation of the documentation, ie: using native OS shell commands vs any script language file containing shell commands or any app for that matter. Nevertheless I think you've answered my questiuon so it's all good. Thanks Stefan.
Stefan Ritt wrote: |
I don't understand your question. There is no "inline" vs. "external" script. Using the "execute new = <command>", you run a script on the server side. Can be powershell under Windows or bash/csh under Linux. I remember however that there has been issues under recent windows in passing parameters to the shell. Linux certainly works fine, we usse it all the time.
Alan Grant wrote: |
Apart from an inline shell command that can be run with the Execute attribute, is it possible to run an external script file? I would like to run a Powershell script with the Elog attribute data parameters passed to it upon Submit New entry.
|
|
|
68970
|
Tue May 14 06:07:07 2019 |
| Alan Grant | agrant@winnipeg.ca | Question | Windows | 3.1.2 | Shell execute |
I have the line in my elog config to run a Powershell script when submitting a New entry. I just send an email as a test:
Execute New = "Powershell.exe -ExecutionPolicy Bypass D:\SendEmail.ps1"
Fyi, the Powershell statement itself (Send-MailMessage -From 'MeterElog@winnipeg.ca' -To 'alangrant@mts.net' -Subject 'New meter entry' -Body 'TEST' -Priority High -DeliveryNotificationOption OnSuccess, OnFailure -SmtpServer 'citygw') works fine and the email is received when running it from the Powershell ISE app directly from the same elog vm server but not from within Elog with the above statement.
I'd like to first confirm that the syntax of the line Execute New = is correct, ie, double quoting the entire command. Can anyone please confirm. |
69018
|
Tue Sep 24 20:06:26 2019 |
| stalin | stalin@hotmail.ca | Question | Windows | 3.1.2 | How to export and import all the threat from old elog server to the new elog server |
Hi Team,
Can you please guide me how to export and import the documents from the one elog to the another elog server also I like to know how to backup the server.
Thanks
Stan |
69027
|
Wed Oct 9 12:09:19 2019 |
| Andreas Luedeke | andreas.luedeke@psi.ch | Question | Windows | 3.1.2 | Re: How to export and import all the threat from old elog server to the new elog server |
See https://elog.psi.ch/elog/config.html#mirroring
and
https://elog.psi.ch/elog/userguide.html#access
(use "find" with "Export to" "Raw".)
stalin wrote: |
Hi Team,
Can you please guide me how to export and import the documents from the one elog to the another elog server also I like to know how to backup the server.
Thanks
Stan
|
|
69286
|
Fri Jan 8 05:48:45 2021 |
| Alan Grant | agrant@winnipeg.ca | Question | Windows | 3.1.2 | Parsing log files |
Sometimes we change the attributes in a config file for a given tab as time goes on, which naturally can get out of sync with the older data in that tab.
I can imagine some other Elog users have encounterd this too at some point so I'm wondering if there's a utilty or some way anyone knows of that I can use to parse a log file DIRECTLY to view the older data, without using the Elog GUI? |
69287
|
Fri Jan 8 06:14:49 2021 |
| John | secondcomingtechnologies@fastmail.com | Question | Linux | Windows | 3.1.2 | Re: Parsing log files |
Hi Al; if I understand your situation correctly you want to access Elog db (logbooks) via another way. There are many ways depending on your knowledge, type of work needed, and ease of use. I have found that accessing whatever I need via Elog gui is satisfactory in many situations-- by simply exporting. THEN take the raw csv/xml file and manipulte it more easily from there. There are MANY free web sites that will take your data then, and put it in still another format that you choose (usually manipulating the rows/columns to your liking or doing mail-merge type work on your data). BTW WPS (Windows Office clone) is awesome at further 'mail-merg' techniques. THEN at that point you may have close to what you are trying to accomplish. I've also used PHP alot in this type of situation and have replicated Elog's data format for it's db (logbooks)..; so PHP is great in this maner, although of course it takes time to 'get-it-right' if you are not well versed in it. If you go into detail more of what type of format you want as the finalized product, maybe more suggestions will be made.
Happy belated New Years everyone,
John
Alan Grant wrote: |
Sometimes we change the attributes in a config file for a given tab as time goes on, which naturally can get out of sync with the older data in that tab.
I can imagine some other Elog users have encounterd this too at some point so I'm wondering if there's a utilty or some way anyone knows of that I can use to parse a log file DIRECTLY to view the older data, without using the Elog GUI?
|
|