• Script to create polls

    From Sean Rima@2:263/1 to All on Sun Jun 13 22:05:08 2021
    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.

    Sean

    ... tcob1: telnet and http tcob1.duckdns.org

    --- BBBS/Li6 v4.10 Toy-5
    * Origin: TCOB1 at tcob1.duckdns.org BinkP / Telnet (2:263/1)
  • From Alan Ianson@1:153/757.3 to Sean Rima on Sun Jun 13 15:28:30 2021
    Has been working for the last week here perfectly. There maybe better and easier ways, but this is my solution.
    Sean

    That looks like a winner. I'm going to give that a try too.

    I have been wondering about the badpolls.dat and what to do with it. Is it a good idea to simply delete it once in a while and let the mailer have another try and those nodes that were unresponsive previously?

    --- BBBS/Li6 v4.10 Toy-5
    * Origin: The Rusty MailBox - Penticton, BC Canada (1:153/757.3)
  • From Sean Rima@2:263/1 to Alan Ianson on Mon Jun 14 00:12:16 2021
    Alan Ianson wrote to Sean Rima <=-

    Has been working for the last week here perfectly. There maybe better and easier ways, but this is my solution.
    Sean

    That looks like a winner. I'm going to give that a try too.

    I have been wondering about the badpolls.dat and what to do with it. Is
    it a good idea to simply delete it once in a while and let the mailer
    have another try and those nodes that were unresponsive previously?

    I have not looked at that as yet, but the scripts clears the busy and bad polls anyway

    Sean


    ... tcob1: telnet and http tcob1.duckdns.org

    --- BBBS/Li6 v4.10 Toy-5
    * Origin: TCOB1 at tcob1.duckdns.org BinkP / Telnet (2:263/1)
  • From Sean Rima@2:263/1 to Sean Rima on Thu Jun 17 16:14:32 2021
    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)