This file is indexed.

/usr/bin/gm-describe_file is in gnumed-client 1.6.11+dfsg-3.

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
65
66
67
68
69
70
71
#!/bin/sh

FILE_2_DESCRIBE="$1"
DESCRIPTION_FILE="$2"

if test -z "${DESCRIPTION_FILE}" ; then
	DESCRIPTION_FILE="${FILE_2_DESCRIBE}.txt"
fi

# file
echo "---- file ----" > ${DESCRIPTION_FILE}
file "${FILE_2_DESCRIBE}" >> "${DESCRIPTION_FILE}" 2>> "${DESCRIPTION_FILE}"
echo "" >> "${DESCRIPTION_FILE}"

# exiftool
BIN=`which exiftool`
if [ "x${BIN}x" != "xx" ]; then
	exiftool -g1 -ee -m -u "${FILE_2_DESCRIBE}" >> "${DESCRIPTION_FILE}" 2>> "${DESCRIPTION_FILE}"
	echo "" >> "${DESCRIPTION_FILE}"
fi

#echo "---- identify ----" >> "${DESCRIPTION_FILE}"
# takes a long time on larger images / PDF files
#identify -verbose "${FILE_2_DESCRIBE}" >> "${DESCRIPTION_FILE}" 2>> "${DESCRIPTION_FILE}"
#echo "" >> "${DESCRIPTION_FILE}"

# pdfinfo
BIN=`which pdfinfo`
if [ "x${BIN}x" != "xx" ]; then
	echo "---- pdfinfo ----" > "${DESCRIPTION_FILE}.pdfinfo"
	pdfinfo -box "${FILE_2_DESCRIBE}" >> "${DESCRIPTION_FILE}.pdfinfo" 2>> "${DESCRIPTION_FILE}.pdfinfo"
	if [ $? -eq 0 ] ; then
		cat "${DESCRIPTION_FILE}.pdfinfo" >> "${DESCRIPTION_FILE}"
		rm -f "${DESCRIPTION_FILE}.pdfinfo"
		echo "" >> "${DESCRIPTION_FILE}"
	fi
	pdfinfo -meta "${FILE_2_DESCRIBE}" >> "${DESCRIPTION_FILE}.pdfinfo" 2>> "${DESCRIPTION_FILE}.pdfinfo"
	if [ $? -eq 0 ] ; then
		cat "${DESCRIPTION_FILE}.pdfinfo" >> "${DESCRIPTION_FILE}"
		rm -f "${DESCRIPTION_FILE}.pdfinfo"
		echo "" >> "${DESCRIPTION_FILE}"
	fi
	pdfinfo -struct "${FILE_2_DESCRIBE}" >> "${DESCRIPTION_FILE}.pdfinfo" 2>> "${DESCRIPTION_FILE}.pdfinfo"
	if [ $? -eq 0 ] ; then
		cat "${DESCRIPTION_FILE}.pdfinfo" >> "${DESCRIPTION_FILE}"
		rm -f "${DESCRIPTION_FILE}.pdfinfo"
		echo "" >> "${DESCRIPTION_FILE}"
	fi
	rm -f "${DESCRIPTION_FILE}.pdfinfo"
fi

# ffprobe
BIN=`which ffprobe`
if [ "x${BIN}x" != "xx" ]; then
	echo "---- ffprobe ----" > "${DESCRIPTION_FILE}.ffprobe"
	ffprobe -v verbose -hide_banner -pretty "${FILE_2_DESCRIBE}" >> "${DESCRIPTION_FILE}.ffprobe" 2>> "${DESCRIPTION_FILE}.ffprobe"
	if [ $? -eq 0 ] ; then
		cat "${DESCRIPTION_FILE}.ffprobe" >> "${DESCRIPTION_FILE}"
		echo "" >> "${DESCRIPTION_FILE}"
	fi
	rm -f "${DESCRIPTION_FILE}.ffprobe"
fi

# sfinfo
BIN=`which sfinfo`
	if [ "x${BIN}x" != "xx" ]; then
	echo "---- sfinfo ----" >> "${DESCRIPTION_FILE}"
	sfinfo "${FILE_2_DESCRIBE}" >> "${DESCRIPTION_FILE}" 2>> "${DESCRIPTION_FILE}"
fi

exit 0