| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: EleBBS: EleBBS with EleServ and Events question ... |
* EleBBS Support List
Hi Erich,
> So are you saying Net2bbs has an event feature or how would you
> spawn net2bbs in a batch file? Is it possible to do so in this regard?
The Net2BBS telnet server does not have an actual event feature, but
rather it has a semaphore checking feature which can be used by an
event to prevent any additional telnet logins during an event.
Here is how it works:
Net2BBS is configured using an NET2BBS.INI file like this:
[Settings]
Command=c:\ele\elebbs.exe -n*N -h*H -XT -XC -XI*{at} -B65529
StartPath=c:\ele\node*N\
Port=23
Nodes=256
StartNode=1
Semaphore=c:\ele\sem\wait.sem
Log=telnet.log
View=Minimize
Debug=0
The Semaphore entry defines a filename which Net2BBS looks for
each time there is an incoming telnet connection.
If this file exists, then instead of spawning the BBS, the telnet server
simply displays the text within this file to the telnet client, and
immediatly disconnects. This prevents any users from logging into
the BBS until the semaphore file is either removed or renamed.
This file could say something like:
The BBS is currently down for nightly maintenance, please try
back in a few minutes.
So, in your events batch file you could copy the semaphore file
containing the text message to the EleBBS semephore directory,
then you could force any currently running elebbs nodes to exit
by creating the RAXITn.e files in the semaphore directory, then
do whatever nightly tasks need to be done, and afterwards the
batch file should delete all the RAXITn.e files, and either delete
or rename the wait.sem file to allow the telnet server to accept
users to the BBS.
Here is an example maintenance.bat:
copy c:\ele\wait.txt c:\ele\sem\wait.sem /y
echo >c:\ele\sem\RAXIT1.0
echo >c:\ele\sem\RAXIT2.0
echo >c:\ele\sem\RAXIT3.0
echo >c:\ele\sem\RAXIT4.0
echo >c:\ele\sem\RAXIT5.0
Rem ***Do the main stuff here ***
erase c:\ele\sem\RAXIT*.* /y
erase c:\ele\sem\wait.sem /y
This assumes there are up to 5 active nodes, so adjust as needed.
The above EleBBS command line will spawn EleBBS.exe (Win32)
directly from the Net2BBS telnet server, but instead you could have
it spawn a batch file which in turn runs EleBBS first, and then checks
for errorlevels if needed (such as echomail being entered by the
user, and needing to be scanned by your mail processor for example).
Regards, Mike
_______________________________________________________________
--- Internet Rex 2.29
* Origin: The gateway at The Snake (2:280/4312.101)SEEN-BY: 633/267 @PATH: 280/4312 774/605 123/500 379/1 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
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™.