> I am trying to use the command line utility elog. Some of the attributes
> that I have setup are multiple options. When I run the command line
> utility to create a new message, any attribute that is setup with multiple
> options will not be filled in. The syntax I am using is as follows:
>
> elog -h localhost -p 8080 -l Lab -a "Site=xxxx" -a "Area=System" -
> a "Priority=Low" -a "Shift=1" -a "Status=Open" -m text.txt
>
> Site and Area are defined in the config file as MOptions. Is there a way
> to use this feature with multiple options on attributes with the
> attributes = to one or more variables?
For MOptions, you have to append an "_n" to each attribute to distinguish
different options for the same attribute, like
elog -h localhost -p 8080 -l Lab -a "Site_0=Home" -a "Site_1=Work" ...
Even if you only use one attribute, the trailing "..._0" is necessary. I will
add a note to the documentation. |