Debug a script callback to console exec >/dev/console 2>&1 set -x Ignore error on a particular line in set -e possibly-failing-command ||: Redirect STDERR to STDOUT some-command 2>&1 > log-all-output.txt