aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2022-02-17 16:30:34 +0100
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2022-02-17 16:30:34 +0100
commit2046bffda9c9ebc451155b7d64f1c855b048ca4f (patch)
tree74b68e5d8d5200607b410a0686202f4fdae5ecda
parent159be47848e99ae1cdda6619e42058d5edd468d5 (diff)
downloadmarkov-k-ram-2046bffda9c9ebc451155b7d64f1c855b048ca4f.zip
markov-k-ram-2046bffda9c9ebc451155b7d64f1c855b048ca4f.tar.bz2
Adds little script to start server.
-rwxr-xr-xrun.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/run.sh b/run.sh
new file mode 100755
index 0000000..79a34eb
--- /dev/null
+++ b/run.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+CURRENT_DIRECTORY=$(cd `dirname $0` && pwd)
+
+if [[ "$#" != "1" ]];
+then
+ echo "Expected single argument: socket file."
+ exit
+fi
+
+while true
+do
+ rm -f $1
+ # Run with listenin socket on $1 and Markov rank 3.
+ $CURRENT_DIRECTORY/bin/jabberhive-markov-k-ram $1 3
+done