Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 30 lines (23 sloc) 436 Bytes
#!/bin/bash
if [ "$1" = '-d' ]; then
text="`date` "
gtext="`date`\n"
shift
else
text=
gtext=
fi
text="$text$*"
gtext="$gtext$*"
beep
if [ -n "$DISPLAY" ]; then
if which zenity >& /dev/null; then
zenity --info --text "$gtext" && exit 0
fi
if which xmessage >/dev/null 2>&1; then
xmessage "$text" && exit 0
fi
fi
# getting desperate
echo "$text" | write `id -un`
logger -t "$0[$$]" "$text"
Something went wrong with that request. Please try again.