Melog

From MidasWiki
Jump to navigation Jump to search


Links

Purpose

The purpose of melog is to submit an entry to the Built-in Electronic Logbook (ELOG). melog is used to submit the full Elog entry to the specified mhttpd port.

To send an entry to an External Electronic Logbook (ELOG), use elog utility.

Arguments

       [-h ] : help
       [-h hostname ] : host name
       [-p port] : port on which mhttpd is running
       [-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

melog -h <hostname> -p <port> -a author=myname "my message"

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"