blob: 525f9812e3bae8ec52f5476786ce82add592e6c0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
#!/bin/bash
printf 'user: %s joined multi\n' "$USER" >> /var/log/hackvr.all
cat /var/cache/hackvr/world_history <(echo 'root export *') \
| egrep -v '^#|^[^ ][^ ]* *quit' \
| grep -v 'move [a-z]' \
| /usr/local/bin/hackvr_headless 2>/dev/null \
| sed 's/^root_//g'
tail -f -n0 /var/cache/hackvr/world_history \
| grep --line-buffered -v '^'"$USER"' ' &
tee -a /var/cache/hackvr/world_history >/dev/null
|