#!/bin/sh # xmsg shell script # Original courtesy of Derek Glidden and Linux Tips and Tricks # Minor tweaks by William Stearns PATH="$PATH:/usr/X11R6/bin" if [ -n "$*" ]; then if [ -z "$DISPLAY" ]; then export DISPLAY="localhost:0.0" fi xkbbell ; xkbbell #Beep the user as well /usr/X11R6/bin/xmessage -nearmouse $* else echo usage: echo " $0 message to display" echo or: echo " echo $0 Pick up daughter | at 14:10 today" echo or the following in your crontab: echo " 55 17 * * Mon,Tue,Wed,Thu,Fri $0 \"Simpsons in five minutes\"" fi