Skip to content

Instantly share code, notes, and snippets.

@abutbul
Created July 23, 2018 21:48
Show Gist options
  • Save abutbul/6d8b20d488dab33809f01328b7e2a4f3 to your computer and use it in GitHub Desktop.
Save abutbul/6d8b20d488dab33809f01328b7e2a4f3 to your computer and use it in GitHub Desktop.
Fido Polling script for multiple nodes - Mystic BBS 1.12 A39+
#!/usr/bin/bash
# About:
# I use this script to eliminate the long line of chained fidopoll commands in my Poll event
# But with minimal adaptations this could be what ever you want it to be.
# Instructions:
# Place this script in your mystic folder and change your fido polling event to call ./pollfido.sh instead of ./fidopoll 1:1/1
# Please notice that you will still want to chain in ./mutil mailin after this script is done via the evnets editor
# since I am not calling it with-in this script. (you could easily add it after 'done' if you wish to call it from this script)
# Update the following array with a space-separated
# list of the nodes you need to poll
node=(1:1/1 2:2/2 ...)
for ((i=0; i<${#node[@]}; ++i))
do
./fidopoll ${node[$i]}
sleep 10 # voodoo sleep, why are nodes busy?
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment