From 4c5871207409d0dfa5187021109978656a177682 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 25 Dec 2021 23:50:30 +0000 Subject: [PATCH] Add scripts to show current bid --- show-bid.sh | 6 ++++++ static-http/cgi-bin/bid | 3 +++ 2 files changed, 9 insertions(+) create mode 100755 show-bid.sh create mode 100755 static-http/cgi-bin/bid diff --git a/show-bid.sh b/show-bid.sh new file mode 100755 index 0000000..8eb0e71 --- /dev/null +++ b/show-bid.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +echo "Content-Type: text/plain" +echo "" + +asterisk -x 'queue show auction' | sed -n 's/^.*prio: \(.*\))$/Aktuelles Gebot: \1/p' | head diff --git a/static-http/cgi-bin/bid b/static-http/cgi-bin/bid new file mode 100755 index 0000000..b8711f1 --- /dev/null +++ b/static-http/cgi-bin/bid @@ -0,0 +1,3 @@ +#!/bin/sh + +exec sudo /etc/asterisk/show-bid.sh