#!/usr/bin/bash if [ ! -w "$1" ]; then echo "Usage: $0 /dev/pts/{tty_nb}" exit 1 fi ( set -e asciiquarium & cmatrix -ab & while [ 1 ]; do sl; done & ) | lolcat > "$1"