From c3275ad7566a6ec6e48ea0a1678722c52586fcfc Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Tue, 24 Jan 2023 16:37:06 +0100 Subject: [PATCH] Send update command to trigger update by UpdateController --- SendUpdateCommand.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 SendUpdateCommand.sh diff --git a/SendUpdateCommand.sh b/SendUpdateCommand.sh new file mode 100644 index 0000000..dddd80b --- /dev/null +++ b/SendUpdateCommand.sh @@ -0,0 +1,17 @@ + + +#!/bin/bash + +pipe=/tmp/testpipe + +if [[ ! -p $pipe ]]; then + echo "Reader not running" + exit 1 +fi + + +if [[ "$1" ]]; then + echo "$1" >$pipe +else + echo "Hello from $$" >$pipe +fi