/usr/bin/pdfsam-console is in pdfsam 1.1.4-2.
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 | #!/bin/sh
### ====================================================================== ###
## ##
## pdfsam Bootstrap Script ##
## ##
### ====================================================================== ###
warn() {
echo "${PROGNAME}: $*"
}
die() {
warn $*
exit 1
}
# use java-wrappers in Debian:
. /usr/lib/java-wrappers/java-wrappers.sh
find_java_runtime openjdk sun
DIRNAME="/usr/share/pdfsam/lib"
CONSOLEJAR=$(echo $DIRNAME/pdfsam-console-*.jar)
# Setup the classpath
if [ ! -f "$CONSOLEJAR" ]; then
die "Missing required file: $CONSOLEJAR"
fi
for jar in $DIRNAME/*.jar
do
CONSOLE_CLASSPATH=$CONSOLE_CLASSPATH:$jar
done
# Setup the JVM
if [ "x$JAVA" = "x" ]; then
if [ "x$JAVA_HOME" != "x" ]; then
JAVA="$JAVA_HOME/bin/java"
else
JAVA="java"
fi
fi
# Setup sepecific properties
JAVA_OPTS="-Dlog4j.configuration=console-log4j.xml"
# Display our environment
echo "========================================================================="
echo ""
echo " pdfsam console"
echo ""
echo " available properties:"
echo " pdfsam.log.console.level"
echo " pdfsam.log.file.level"
echo " pdfsam.log.file.filename"
echo ""
echo " JAVA: $JAVA"
echo ""
echo " JAVA_OPTS: $JAVA_OPTS"
echo ""
echo " CLASSPATH: $CONSOLE_CLASSPATH"
echo ""
echo "========================================================================="
echo ""
# Execute the JVM in the foreground
"$JAVA" $JAVA_OPTS \
-classpath "$CONSOLE_CLASSPATH" \
org.pdfsam.console.ConsoleClient "$@"
|