#!/bin/bash cd "$( dirname "$0" )" clear cat <&1 | tee /tmp/log set +x done