[arm-allstar] Pause or delay saytime.pl
David Panscik
dpanscik at yahoo.com
Tue Apr 14 14:44:40 EDT 2020
Howdy.
This is a similar question, I am asking on another thread.
Once an hour crontab triggers saytime.pl with the below command;
#Say Time 00 6-21 * * 1-5 (source /usr/local/etc/allstar.env ; /usr/bin/nice -19 /usr/bin/perl /usr/local/sbin/saytime.pl $NODE1 > /dev/null)
When saytime.pl is triggered it announces the time promptly, and if a conversation is in progress, it rudely talks over the existing conversation.
Is there a way to pause this script and wait for no repeater activity for at least 60 seconds? Or have crontab look for at least 60 seconds of no repeater activity before firing the saytime.pl script?
Something like;
If RXKEY > 60 then
#Say Time 00 6-21 * * 1-5 (source /usr/local/etc/allstar.env ; /usr/bin/nice -19 /usr/bin/perl /usr/local/sbin/saytime.pl $NODE1 > /dev/null)
else loopfi
*73*David
More information about the ARM-allstar
mailing list