cqrlog/voice_keyer/voice_keyer.sh
2013-04-08 19:01:54 +02:00

8 lines
196 B
Bash
Executable File

#!/bin/bash
if ! ps aux | grep -q '[m]pg123'
then
echo -e '\033a1' | nc -q 1 -u localhost 6789 &
mpg123 ~/.config/cqrlog/voice_keyer/$1.mp3
echo -e '\033a0' | nc -q 1 -u localhost 6789 &
fi