Capture everything from your bash script

#!/bin/bash
exec > >(tee /var/log/myutil.log| logger -t "$0" -s 2>/dev/console) 2>&1
...

Comments

Popular posts from this blog

YAML Syntax Highlighting in gedit

Xubuntu Home Server on Dell XPS 13 9370

Fedora - VNC through systemd/xinetd