/usr/share/doc/swish++/examples/rlimit is in swish++ 6.1.5-2.1.
This file is owned by root:root, with mode 0o644.
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 | #!/bin/sh
# Copyright (C) 2008 Kapil Hari Paranjape <kapil@debian.org>
# The contents of this file are released in the Public Domain
# A sample script to run a filter with
# some limits set as by ulimit
ulimargs="$*"
cmd="$*"
ulimargs=${ulimargs%%--*}
cmd=${cmd##*--}
ulimit -H ${ulimargs} > /dev/null 2>&1
[ -n "$cmd" ] || exit 0
if [ -z "$cmd" ]
then
echo "usage:" $0 "<ulimit arguments> -- <filter cmd and args>"
exit 1
fi
exec ${cmd}
|