PlaneShift
Support => Linux Specific Issues => Topic started by: Lifaeen on March 13, 2011, 11: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
-
Another one ... great.
But it is possibly in the wrong place, as it is no "bug report".
Aiwendil's PS_playerS.py (http://www.hydlaaplaza.com/smf/index.php?topic=36145.0) is in PlaneShift Mods (http://www.hydlaaplaza.com/smf/index.php?board=61.0). Gilrond's shell script (http://www.hydlaaplaza.com/smf/index.php?topic=38971.0) is in Server Status (http://www.hydlaaplaza.com/smf/index.php?board=42.0). Couldn't say which location is more or less correct regarding location. Maybe we need another forum like "PlaneShift related software"?
-
Very nice little script, thanks :)