From c79bbdb0448501987c0c16c2877c780143156d1e Mon Sep 17 00:00:00 2001 From: Orfeas <38209077+0xfea5@users.noreply.github.com> Date: Sun, 21 Apr 2024 16:27:55 +0300 Subject: Changes in trainer interface, bug fixes & helper scripts --- scripts/read.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 scripts/read.sh (limited to 'scripts/read.sh') diff --git a/scripts/read.sh b/scripts/read.sh new file mode 100644 index 0000000..38535e6 --- /dev/null +++ b/scripts/read.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +if [ "$#" -ne 1 ] +then + printf "Usage: %s \n" "$0" + exit 1 +fi + +scanfile=${SCANFILE:-/tmp/scanfile} +pid="$1" +watch -d -n 1 "xargs -r -a ${scanfile} ./hack.out ${pid} read 8 > /tmp/out 2> /dev/null && pr -t -m ${scanfile} /tmp/out" -- cgit v1.2.3