💾 Archived View for thrig.me › blog › 2023 › 11 › 11 › atdirtest.sh captured on 2024-07-09 at 01:58:32.

View Raw

More Information

⬅️ Previous capture (2023-11-14)

-=-=-=-=-=-=-

#!/bin/sh
set -e
d=`mktemp -d`
cd "$d"
f=`mktemp`
printf '(pwd;ls;cd /tmp;pwd;ls) | tee "%s"' "$f" |
at +1m
rmdir "$d"		# whoops!
#chmod 000 "$d"	# whoops?
sleep 61
printf '%s\n' "$f"