TIP: Click on subject to list as thread! ANSI
echo: bbbs.english
to: TONY COMANDINI
from: JANIS KRACHT
date: 2016-12-19 09:22:00
subject: How to setup a poll event

> Thank you Jeff, so if I well understand you don't use the internal event of
>BBBS. So in essence you call different scripts by crontab. Do you have a scrip
> to poll your nodes?

===Mailin.sh===
#!/bin/sh
cd /home/bbbs
./bbbs bogus w &
./bbbs btick &
exit
====

The & tells linux to run the bbbs commands in the background.

===Mailout.sh===
#!/bin/sh
cd /home/bbbs
./bbbs bogus r &
exit
===

This is my cronfile that runs them:

===cronfile.bbs4===
MAILTO=janis@filegate.net
*/10 * * * *  /home/bbbs/mailin.sh
*/12 * * * *  /home/bbbs/mailout.sh
===

I call the cronfile.bbs4 file like this:

crontab -u bbs cronfile.bbs4

The first line in cronfile.bbs4 sends me an email everytime an event is run.

Take care,
Janis

--- BBBS/Li6 v4.10 Toy-3
* Origin: Prism bbs (1:261/38)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.