diff options
author | epoch <epoch@hack.thebackupbox.net> | 2020-04-14 11:49:04 +0000 |
---|---|---|
committer | epoch <epoch@hack.thebackupbox.net> | 2020-04-14 11:49:04 +0000 |
commit | c0e38b3d008c2aa07c7cd03a0ce74edbaf05f8e5 (patch) | |
tree | 516730b92d856d4fb65d4b875ba7fc05c125bf7f /share/hackvr/examples/hackvrd/multi.sh | |
parent | 35b84411ef9e69ab01bf0de789cce296d302110e (diff) | |
download | hackvr-c0e38b3d008c2aa07c7cd03a0ce74edbaf05f8e5.tar.gz hackvr-c0e38b3d008c2aa07c7cd03a0ce74edbaf05f8e5.zip |
added a bunch of the hackvr-server scripts
Diffstat (limited to 'share/hackvr/examples/hackvrd/multi.sh')
-rwxr-xr-x | share/hackvr/examples/hackvrd/multi.sh | 10 |
1 files changed, 10 insertions, 0 deletions
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 |