Author Topic: desktop buddy list  (Read 915 times)

Lifaeen

  • Wayfarer
  • *
  • Posts: 4
    • View Profile
desktop buddy list
« on: March 13, 2011, 05:14:20 am »
Hey all.
I've written this script once to show all online players/friends without logging in.
you'll need 'wget' and 'notify-send' for it (libnotify-bin in ubuntu/debian).


#!/bin/sh
a=$(wget -qO- http://62.173.168.9/index.php?page=char_stats | grep -v -E "<|>" | grep -v "^$" | sed 's/ //g' | sed 's/,/\n/g' | sort)
b=$(sort buddy 2>&1) || echo "couldn't find buddy list! please create file 'buddy' in this dir and write the names in it"
c=""
for i in $b
do
c=${c}$(echo $a | sed 's/ / \n/g' | grep $i)
done
notify-send "players online:" "$c"
echo $a
« Last Edit: March 13, 2011, 05:26:18 am by Lifaeen »

LigH

  • Forum Legend
  • *
  • Posts: 7096
    • View Profile
Re: desktop buddy list
« Reply #1 on: March 13, 2011, 06:59:07 am »
Another one ... great.

But it is possibly in the wrong place, as it is no "bug report".

Aiwendil's PS_playerS.py is in PlaneShift Mods. Gilrond's shell script is in Server Status. Couldn't say which location is more or less correct regarding location. Maybe we need another forum like "PlaneShift related software"?

Gag Harmond
Knight and Ambassador
The Royal House of Purrty

Drogos

  • Traveller
  • *
  • Posts: 13
    • View Profile
Re: desktop buddy list
« Reply #2 on: March 22, 2011, 04:05:40 pm »
Very nice little script, thanks :)