#!/bin/bash
if (($# < 2));then
echo "Usage: ${0##*/} dest text [text ...]" > /dev/stderr
exit 1
fi
dest=${1}
shift
ssh ${dest} "DISPLAY=:0 python" <
$ mv mesg.sh.txt mesg.sh; chmod 755 mesg.sh
- To send a message to a user at a remote desktop:
$ ./mesg.sh user@host "Are you ready for lunch ?"
- You can also use html-like syntax to send URLs:
$ ./mesg.sh shikamaru@host '<a href="http://www.dattebayo.com/t/ns031.torrent">Naruto Shippuuden </a> is out'
- He will receive the following notification:

If you liked this, please share it at your favorite sites:
Leave a Reply