Subj : Script to create polls
To   : Sean Rima
From : Sean Rima
Date : Thu Jun 17 2021 04:14 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.

Ok, was playing a bit more, and sorry to my hosts whom I may have polled  excessively :) Now if mail exists for a node, it doesn't create additional  crashmail. so just clears the bad and busy flags

============================================================
#!/bin/bash
#
date
cat /home/bbbs/polls.txt |  while read output do
   ./bbbs bom b "$output" 0
   ./bbbs bom ba "$output" 0

   if [[ $(/home/bbbs/bbbs bom l $output|grep $output) ]]; then
         echo "EchoMail - Not Adding Crashmail"
   else
       /home/bbbs/bbbs bom c $output +c
   fi
done

============================================================


--- BBBS/Li6 v4.10 Toy-5
* Origin: TCOB1 at tcob1.duckdns.org BinkP / Telnet (2:263/1)