/usr/share/sadms-2.0.15/sadms.sh is in sadms 2.0.15.repack-0ubuntu2.
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 | #!/bin/bash
# bbou@ac-toulouse.fr
# 2004-10-16 07:06:37
# sadms.sh
# shell main entry point
function readlink2()
{
[ ! -L $1 ] || ls -l $1 | sed s/.*-\>\ *//g
}
function followlink()
{
prg="$1"
while [ -h "${prg}" ] ; do
ls=`ls -ld "${prg}"`
link=`expr "${ls}" : '.*-> \(.*\)$'`
if expr "${link}" : '.*/.*' > /dev/null; then
prg="${link}"
else
prg=`dirname "${prg}"`/"${link}"
fi
done
echo ${prg}
}
function absdir()
{
[ -n "$1" ] && ( cd "$1" 2> /dev/null && pwd ; )
}
where=`followlink $0`
where=`dirname ${where}`
where=`absdir ${where}`
cd ${where}
./sadms.py
|