From c0e38b3d008c2aa07c7cd03a0ce74edbaf05f8e5 Mon Sep 17 00:00:00 2001 From: epoch Date: Tue, 14 Apr 2020 11:49:04 +0000 Subject: added a bunch of the hackvr-server scripts --- share/hackvr/examples/hackvrd/multi.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 share/hackvr/examples/hackvrd/multi.sh (limited to 'share/hackvr/examples/hackvrd/multi.sh') diff --git a/share/hackvr/examples/hackvrd/multi.sh b/share/hackvr/examples/hackvrd/multi.sh new file mode 100755 index 0000000..525f981 --- /dev/null +++ b/share/hackvr/examples/hackvrd/multi.sh @@ -0,0 +1,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 -- cgit v1.2.3