summaryrefslogtreecommitdiff
path: root/share/hackvr/examples/hackvrd/hackvr-subsystem
diff options
context:
space:
mode:
authorepoch <epoch@hack.thebackupbox.net>2020-04-18 07:41:01 +0000
committerepoch <epoch@hack.thebackupbox.net>2020-04-18 07:41:01 +0000
commit6894e26fc16f9cac90ef5ea6b547618f70b0edc9 (patch)
treeef85bd33feff07692737fe55aa23338ef7ecea72 /share/hackvr/examples/hackvrd/hackvr-subsystem
parent459bff40e078a3979573000a903b288bcc9a8d3f (diff)
downloadhackvr-6894e26fc16f9cac90ef5ea6b547618f70b0edc9.tar.gz
hackvr-6894e26fc16f9cac90ef5ea6b547618f70b0edc9.zip
rearrange radio buttons, use socat instead of ncat for connecting to local hackvr service from the ssh command. fixed a missing "cd" in hackvrd.sh
Diffstat (limited to 'share/hackvr/examples/hackvrd/hackvr-subsystem')
-rwxr-xr-xshare/hackvr/examples/hackvrd/hackvr-subsystem4
1 files changed, 3 insertions, 1 deletions
diff --git a/share/hackvr/examples/hackvrd/hackvr-subsystem b/share/hackvr/examples/hackvrd/hackvr-subsystem
index ad99b84..024a896 100755
--- a/share/hackvr/examples/hackvrd/hackvr-subsystem
+++ b/share/hackvr/examples/hackvrd/hackvr-subsystem
@@ -1,5 +1,7 @@
#!/bin/bash
+set -o pipefail
+
if [ "$1" ];then
derp="$USER action $1"
fi
-cat <(echo $derp) /dev/stdin | ncat 127.0.0.1 1337
+cat <(echo $derp) /dev/stdin | socat tcp-connect:127.0.0.1:1337,null-eof stdio