This file is indexed.

/usr/bin/gm-create_datamatrix is in gnumed-client 1.6.15+dfsg-1.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/bin/bash

# ===========================================================
# Create a datamatrix QR code from a text file.
#
# The GNUmed client expects to be able to run this command
# in a systemwide way, ie. it needs to be accessible in the
# executable $PATH (such that "which gm-create_datamatrix"
# gives a useful answer). There can be several copies per
# system in which way users can override a system default
# script with their own.
#
# Typical locations for this script would be
#
#	/usr/bin/
#	/usr/local/bin/
#	~/bin/
#
# This is just an example. You must install
#	"dmtx-utils"
#		or
#	"iec16022"
# to actually use it.
#
# ===========================================================
INPUT_FILE="$1"
OUTPUT_FILE="$2"

# ----------------------------------------------------------
if test -z ${OUTPUT_FILE} ; then
	echo "=============================================================================================="
	echo "Usage:"
	echo " $0 <input filename> <output filename>"
	echo ""
	echo "Given:"
	echo " $0 ${INPUT_FILE} ${OUTPUT_FILE}"
	echo "=============================================================================================="
	exit 1
fi


#CONVERTER="iec16022"
#OPTIONS="-f PNG -i ${INPUT_FILE} -o ${OUTPUT_FILE}"
CONVERTER="dmtxwrite"
OPTIONS="--encoding=a --margin=2 --format=PNG --output=${OUTPUT_FILE}.png --symbol-size=s --verbose ${INPUT_FILE}"
LOG="${INPUT_FILE}.${CONVERTER}.log"
RUN_CONVERTER="${CONVERTER} ${OPTIONS}"


echo "Running datamatrix converter" &> ${LOG}
rm -vf ${OUTPUT_FILE} &>> ${LOG}
rm -vf ${OUTPUT_FILE}.png &>> ${LOG}
echo "${RUN_CONVERTER}" &>> ${LOG}
${RUN_CONVERTER} &>> ${LOG}
if test "$?" != "0" ; then
	echo "running converter failed" &>> ${LOG}
	rm -vf ${OUTPUT_FILE}.png &>> ${LOG}
	exit 1
fi

mv -vf ${OUTPUT_FILE}.png ${OUTPUT_FILE} &>> ${LOG}

exit 0
# ===========================================================