Subj : Script to create polls
To : All
From : Sean Rima
Date : Sun Jun 13 2021 10:05 pm
Folks
Was messing around with my Linux scripts and created a short script to clear bad and busy polls and then poll a list of stations. I did it so that instead of having to have bom ba/b/c lines, it reads a text file and creates the necessary polls. Maybe sucking eggs here.
polls.sh
-=-=-=-=-=-=-=-=-=
#!/bin/bash
date
cat /home/bbbs/polls.txt | while read output do
./bbbs bom b "$output" 0
./bbbs bom ba "$output" 0
./bbbs bom c "$output" +c
done
-=-=-=-=-=-=-=-=-=-=
poll.txt
-=-=-==-=
2:263/1
....
-=-=-=-=-=
Has been working for the last week here perfectly. There maybe better and easier ways, but this is my solution.