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