2 PATH
=/bin
:/usr
/bin
/:/usr
/local
/bin
5 [ -z "$1" -o -z "$2" ] && exit 1
7 # Check if file is indeed a file and readable
8 [ ! -f "$1" -o ! -r "$1" ] && exit 1
10 KOPETE_RUNNING
=x
`ps -A|grep -e "kopete$"`
12 if [ "$KOPETE_RUNNING" = "x" ]; then
15 THIS_SERVER
=`uname -n`
20 if [ "$2" != "$THIS_SERVER" ]; then
21 echo -e "Kopete is currently not running.\nYour message was not delivered!" \
27 # Create a unique filename
28 filename
="/var/lib/winpopup/`date +%s_%N`"
31 TIME
=`date --iso-8601=seconds`
36 # Put it into the file
37 echo -e "$2\n$TIME\n$MESSAGE" > $filename
42 # Remove the message from samba