|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /proc/21572/task/21572/root/usr/bin/ |
Upload File : |
#! /bin/sh
prefix=/usr
exec_prefix=/usr
# Set defaults
OPT_f=""
OPT_m=""
OPT_q="-q b"
OPT_v=""
OPT_V=""
time_date_arg="now"
# Note that we use `"$@"' to let each command-line parameter expand to a
# separate word. The quotes around `$@' are essential!
# We need TEMP as the `eval set --' would nuke the return value of getopt.
TEMP=`/usr/bin/getopt 'f:mq:vV' "$@"`
if [ $? != 0 ] ; then
echo "batch: error parsing command-line arguments" >&2
exit 1
fi
# Note the quotes around `$TEMP': they are essential!
eval set -- "$TEMP"
while true ; do
case "$1" in
-f) OPT_f="-f $2" ; shift 2 ;;
-m) OPT_m="-m"; shift ;;
-q) OPT_q="-q $2"; shift 2 ;;
-v) OPT_v="-v"; shift ;;
-V) OPT_V="-V"; shift ;;
--) shift ; break ;;
*) echo "batch: internal parsing error" >&2 ; exit 1 ;;
esac
done
if [ ! -z "$*" ] ; then
time_date_arg="$*"
fi
exec /usr/bin/at $OPT_f $OPT_m $OPT_q $OPT_v $OPT_V $time_date_arg