I recently switched from
2>&1 >> to
Is there a way to have at use /bin/bash as the shell? By default it uses /bin/sh and the man page gives no indication how anything else can be used. Even in a
crontab one can use
The main problem this has been causing me is that in:
echo "do-smth.sh &>> logfile" | at now + 8 hours
instead of appending both stdout and stderr to my logfile, they have been getting lost altogether, not even getting emailed.
This workaround didn't work, citing unexpected redirection:
echo "bash <<< \"do-smth.sh &>> logfile\"" | at now + 8 hours
I use Linux, Ubuntu 11.10 flavor, which shouldn't matter.