1
0
mirror of https://github.com/AG7GN/nexus-utilities.git synced 2025-05-21 08:50:13 -07:00

Changed script parameter from -s to -c

This commit is contained in:
Steve Magnuson 2020-02-08 19:32:49 -08:00
parent 5dada6c898
commit 6e1a7aac1c
2 changed files with 9 additions and 9 deletions

View File

@ -25,9 +25,9 @@
#% w7ecg:81ag7gn this is my message. #% w7ecg:81ag7gn this is my message.
#% #%
#% OPTIONS #% OPTIONS
#% -s command, --script=command #% -c command, --command=command
#% Launch the script/app in file if a match is found. #% Launch command if a match is found. Wrap in
#% Wrap in double quotes if arguments to app are supplied. #% double quotes if arguments to command are supplied.
#% See EXAMPLES below. #% See EXAMPLES below.
#% -t date_format, --timestamp=date_format #% -t date_format, --timestamp=date_format
#% Precede each message printed to stdout with a #% Precede each message printed to stdout with a
@ -62,14 +62,14 @@
#% Match messages where the called station is any of ag7gn or wc7hq or n7bel. #% Match messages where the called station is any of ag7gn or wc7hq or n7bel.
#% Play a WAV file on match. Don't print matching messages to stdout: #% Play a WAV file on match. Don't print matching messages to stdout:
#% #%
#% ${SCRIPT_NAME} -s "aplay -q alert.wav" ":..(ag7gn|wc7hq|n7bel)" >/dev/null #% ${SCRIPT_NAME} -c "aplay -q alert.wav" ":..(ag7gn|wc7hq|n7bel)" >/dev/null
#% #%
#% Match messages where the called station is ag7gn, followed by the string #% Match messages where the called station is ag7gn, followed by the string
#% 'steve' anywhere in the remainder of the message. #% 'steve' anywhere in the remainder of the message.
#% Play an OGG file with 'paplay' to pulseaudio device 'system-audio-playback' #% Play an OGG file with 'paplay' to pulseaudio device 'system-audio-playback'
#% on match. Don't print matching messages to stdout: #% on match. Don't print matching messages to stdout:
#% #%
#% ${SCRIPT_NAME} -s "paplay --device=system-audio-playback fsq_ag7gn.ogg" ":..ag7gn.*steve" >/dev/null #% ${SCRIPT_NAME} -c "paplay --device=system-audio-playback fsq_ag7gn.ogg" ":..ag7gn.*steve" >/dev/null
#% #%
#% Match messages where the calling station is either wc7hq or n7bel. Prepend #% Match messages where the calling station is either wc7hq or n7bel. Prepend
#% the messages printed to stdout with a specific timestamp format: #% the messages printed to stdout with a specific timestamp format:
@ -78,7 +78,7 @@
#% #%
#================================================================ #================================================================
#- IMPLEMENTATION #- IMPLEMENTATION
#- version ${SCRIPT_NAME} 1.1.8 #- version ${SCRIPT_NAME} 1.2.1
#- author Steve Magnuson, AG7GN #- author Steve Magnuson, AG7GN
#- license CC-BY-SA Creative Commons License #- license CC-BY-SA Creative Commons License
#- script_id 0 #- script_id 0
@ -197,7 +197,7 @@ ARRAY_OPTS=(
[help]=h [help]=h
[version]=v [version]=v
[man]=h [man]=h
[script]=s [command]=c
[timestamp]=t [timestamp]=t
[wait]=w [wait]=w
) )
@ -245,7 +245,7 @@ do
ScriptInfo full ScriptInfo full
exit 0 exit 0
;; ;;
s) c)
SCRIPT="$OPTARG" SCRIPT="$OPTARG"
#[[ -s "$SCRIPT" ]] || Die "${SCRIPT_NAME}: \""$SCRIPT"\" not found." #[[ -s "$SCRIPT" ]] || Die "${SCRIPT_NAME}: \""$SCRIPT"\" not found."
;; ;;

View File

@ -1 +1 @@
VERSION="2.0.11" VERSION="2.1.1"