From b673c0bdf92d4cea24f81f8797c8e7aa37078272 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Thu, 7 Jul 2022 13:53:42 -0500 Subject: Add -s/-S options for status --- radio | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/radio b/radio index d0c12a6..2078dfe 100755 --- a/radio +++ b/radio @@ -9,12 +9,14 @@ _radio_desc=2 _radio_tags=3 RADIO_PID_FILE=/tmp/radio.pid +RADIO_STATUS_FILE=/tmp/radio.status usage() { cat <&2 "Playing $(echo "$station" | cut -f $_radio_desc)..." - "$RADIO_PLAYER" "$(echo "$station" | cut -f $_radio_url)" & + "$RADIO_PLAYER" "$(echo "$station" | cut -f $_radio_url)" >"$RADIO_STATUS_FILE" 2>&1 & echo $! >"$RADIO_PID_FILE" exit } -- cgit 1.4.1-21-gabe81