mcchecklicense — Verify if MemCom license is correct
mcchecklicense
mcchecklicense checks if the current
installation of MemCom has a valid license.
mcchecklicense assumes that the path to the
MemCom libraries is listed in the
LD_LIBRARY_PATH
environment variable and that the
path from where mcchecklicense is executed is
consistent with the library path listed in the
LD_LIBRARY_PATH
environment variable.
mcchecklicense does not produce any printed output
if the verification is successful, i.e only returns the status 0 in
the shell status variable $?
.
mcchecklicense does not produce any printed
output if the verification is successful. If not, a message is printed
to the stderr output stream. As long as
mcchecklicense is issued in interactive mode from a
shall it is not necessary to check the shell status variable
$?
.
Example:
prompt>
mcchecklicenseprompt>
prompt>
echo $? 0
if mcchecklicense is launched
from a batch job, such as qsub it is recommended to
always check the shell status variable $?
returned
by mcchecklicense.
Example batch script batch.sh
to be
submitted by qsub:
export LD_LIBRARY_PATH=<path-to-memcom>/lib:$LD_LIBRARY_PATH export SMR_LICENSE=<path-to-license-file>/<license-file-name> <path-to-memcom>/bin/mcchecklicense echo 'mcchecklicense status: ' $?
It might be necessary to re-direct the
stderr
output stream to the
stdout
output stream by adding the re-direction
instruction:
export LD_LIBRARY_PATH=<path-to-memcom>/lib:$LD_LIBRARY_PATH
export SMR_LICENSE=<path-to-license-file>/<license-file-name>
<path-to-memcom>/bin/mcchecklicense 2>&1
echo 'mcchecklicense status: ' $?