Melog: Difference between revisions

From MidasWiki
Jump to navigation Jump to search
No edit summary
(The midas documentation has moved to https://midas.triumf.ca/docs/)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
== Description ==
The midas documentation has moved. See [https://midas.triumf.ca/docs/develop/reference/reference/programs/#melog melog] on the Programs and options page and [https://midas.triumf.ca/docs/develop/features/monitoring_and_control/elog/#melog-for-internal melog (for internal)] on the Logbook (elog) page for the new documentation about the melog program.
The <span style="color:darkcyan;">''melog''</span> utility submits an entry to the [https://midas.psi.ch/elog/ ELOG (electronic log)]. See also mhttpd [[ELOG Page]].
 
<span style="color:darkcyan;">''melog''</span> is used to submit full Elog entry to the specified Elog port.
 
 
== Arguments ==
        [-h ] : help
        [-h hostname ] : host name
        [-l exptname or logbook ]
        [-u username password ]
        [-f <attachment> ] : up to 10 files.
        -a <attribute>=<value> : up to 20 attributes.The attribute "Author=..." must be present for submission of Elog.
        -m <textfile> | text> Message. Arguments with blanks must be enclosed in quotes. The elog message can either be submitted  on the command line or in a file with the -m flag. Multiple attributes and attachments can be supplied.
 
== Usage ==
By default the attributes are "Author", "Type", "System" and "Subject". The "Author" attribute has to be present in the elog command in order to successfully submit the message. If multiple attributes are required append before "text" field the full specification of the attribute. In case of multiple attachments, only one "-f" is required followed by up to 10 file names.
 
== Examples ==
    >melog -h myhost -p 8081 -l myexpt -a author=pierre "Just a elog message"
    >melog -h myhost -p 8081 -l myexpt -a author=pierre -f file2attach.txt \
                    "Just this message with an attachment"
    >melog -h myhost -p 8081 -l myexpt -a author=pierre -m file_containing_the_message.txt
    >melog -h myhost -p 8081 -l myexpt -a Author=pierre -a Type=routine -a system=general \
                    -a Subject="my test" "A full Elog message"
 
[[Category:Utilities]] [[Category:ELOG]]

Latest revision as of 22:01, 30 October 2026

The midas documentation has moved. See melog on the Programs and options page and melog (for internal) on the Logbook (elog) page for the new documentation about the melog program.