#!/bin/bash
if [ -t 2 ]; then
	echo >&2 "$*"
elif [ -n "$DISPLAY" ]; then
	xmessage "$*"
else
	echo "$*" | mail $USER
fi
