MBBS 6.25 Shutdown to DOS

Major BBS or Worldgroup - get and give support here.

Moderator: Mod Squad

Post Reply
char27
Posts: 5
Joined: Wed Nov 15, 2006 3:22 am

MBBS 6.25 Shutdown to DOS

Post by char27 »

I wrote a small app so I can start monitor and and stop my MBBS via scheduled job or windows service easily.

This works well only I have one remaining issue...

I would love to figure out how to exit to DOS automatically when shutting down MBBS via the console or remotely.

I am getting ready to add to my app the ability to connect and remote shutdown the BBS via telnet - or the console if it works well.
However, once that is done, I would prefer if it closed itself on shutdown rather having to call kill on the ntvdm process.

This way I can easily start and safely stop the BBS remotely using a webservice, live messenger or even email. Otherwise I need to issue the shutdown command and then wait some period of time hoping its all done before killing it.

Does anyone know of a solution (by config or addons) that can do this?

User avatar
dspain
Posts: 2102
Joined: Sun May 07, 2006 10:38 pm
Location: richmond,virginia
Contact:

Re: MBBS 6.25 Shutdown to DOS

Post by dspain »

char27 wrote:I wrote a small app so I can start monitor and and stop my MBBS via scheduled job or windows service easily.

This works well only I have one remaining issue...

I would love to figure out how to exit to DOS automatically when shutting down MBBS via the console or remotely.

I am getting ready to add to my app the ability to connect and remote shutdown the BBS via telnet - or the console if it works well.
However, once that is done, I would prefer if it closed itself on shutdown rather having to call kill on the ntvdm process.

This way I can easily start and safely stop the BBS remotely using a webservice, live messenger or even email. Otherwise I need to issue the shutdown command and then wait some period of time hoping its all done before killing it.

Does anyone know of a solution (by config or addons) that can do this?
so you want the server to shutdown rather than cleanup?
and bring up the dos prompt ... C:\BBSV6?

char27
Posts: 5
Joined: Wed Nov 15, 2006 3:22 am

Re: MBBS 6.25 Shutdown to DOS

Post by char27 »

dspain wrote:
char27 wrote:I wrote a small app so I can start monitor and and stop my MBBS via scheduled job or windows service easily.

This works well only I have one remaining issue...

I would love to figure out how to exit to DOS automatically when shutting down MBBS via the console or remotely.

I am getting ready to add to my app the ability to connect and remote shutdown the BBS via telnet - or the console if it works well.
However, once that is done, I would prefer if it closed itself on shutdown rather having to call kill on the ntvdm process.

This way I can easily start and safely stop the BBS remotely using a webservice, live messenger or even email. Otherwise I need to issue the shutdown command and then wait some period of time hoping its all done before killing it.

Does anyone know of a solution (by config or addons) that can do this?
so you want the server to shutdown rather than cleanup?
and bring up the dos prompt ... C:\BBSV6?
Not sure what you mean exactly
I guess to put it simply, when I shutdown the BBS using the sysop menu's SHUTDOWN command, I want it to exit to DOS (which will actually close the DOS window) rather than stay on the main MBBS screen (where you can hit 5 to start and 0 to exit).

I can restart the job remotely if it exits but if its on this screen, I have to be at the console to do that (or kill the process of course).

Does that make more sense?

frcorey
Posts: 414
Joined: Sat Jul 08, 2006 10:52 pm

Re: MBBS 6.25 Shutdown to DOS

Post by frcorey »

char27 wrote:
dspain wrote:
char27 wrote:I wrote a small app so I can start monitor and and stop my MBBS via scheduled job or windows service easily.

This works well only I have one remaining issue...

I would love to figure out how to exit to DOS automatically when shutting down MBBS via the console or remotely.

I am getting ready to add to my app the ability to connect and remote shutdown the BBS via telnet - or the console if it works well.
However, once that is done, I would prefer if it closed itself on shutdown rather having to call kill on the ntvdm process.

This way I can easily start and safely stop the BBS remotely using a webservice, live messenger or even email. Otherwise I need to issue the shutdown command and then wait some period of time hoping its all done before killing it.

Does anyone know of a solution (by config or addons) that can do this?
so you want the server to shutdown rather than cleanup?
and bring up the dos prompt ... C:\BBSV6?
Not sure what you mean exactly
I guess to put it simply, when I shutdown the BBS using the sysop menu's SHUTDOWN command, I want it to exit to DOS (which will actually close the DOS window) rather than stay on the main MBBS screen (where you can hit 5 to start and 0 to exit).

I can restart the job remotely if it exits but if its on this screen, I have to be at the console to do that (or kill the process of course).

Does that make more sense?
that screen is just a batch file. you would just need to mod that.

User avatar
dspain
Posts: 2102
Joined: Sun May 07, 2006 10:38 pm
Location: richmond,virginia
Contact:

Re: MBBS 6.25 Shutdown to DOS

Post by dspain »

char27 wrote:
dspain wrote:
char27 wrote:I wrote a small app so I can start monitor and and stop my MBBS via scheduled job or windows service easily.

This works well only I have one remaining issue...

I would love to figure out how to exit to DOS automatically when shutting down MBBS via the console or remotely.

I am getting ready to add to my app the ability to connect and remote shutdown the BBS via telnet - or the console if it works well.
However, once that is done, I would prefer if it closed itself on shutdown rather having to call kill on the ntvdm process.

This way I can easily start and safely stop the BBS remotely using a webservice, live messenger or even email. Otherwise I need to issue the shutdown command and then wait some period of time hoping its all done before killing it.

Does anyone know of a solution (by config or addons) that can do this?
so you want the server to shutdown rather than cleanup?
and bring up the dos prompt ... C:\BBSV6?
Not sure what you mean exactly
I guess to put it simply, when I shutdown the BBS using the sysop menu's SHUTDOWN command, I want it to exit to DOS (which will actually close the DOS window) rather than stay on the main MBBS screen (where you can hit 5 to start and 0 to exit).

ok got ya, add an EXIT command to the end of that part of BBS.BAT


I can restart the job remotely if it exits but if its on this screen, I have to be at the console to do that (or kill the process of course).

Does that make more sense?

char27
Posts: 5
Joined: Wed Nov 15, 2006 3:22 am

Post by char27 »

I don't think an Exit can work - The main BBS screen is still running as an EXE and it does not look like its exiting one exe and opening another but I suppose its possible. The BAT file is kind of a big one and I have not walked thru every part of it yet.

User avatar
dspain
Posts: 2102
Joined: Sun May 07, 2006 10:38 pm
Location: richmond,virginia
Contact:

Post by dspain »

char27 wrote:I don't think an Exit can work - The main BBS screen is still running as an EXE and it does not look like its exiting one exe and opening another but I suppose its possible. The BAT file is kind of a big one and I have not walked thru every part of it yet.
how about setting up the server to do shutdown at X time and a windows script to close the window at X time?

char27
Posts: 5
Joined: Wed Nov 15, 2006 3:22 am

Fixed

Post by char27 »

I hadn't worked on the BBS much after that last post.
I am finally back setting it up and now have it running on a real DOS machine with TCP/IP running.

I made a quick mod of the BBS.BAT file to do what I wanted.

if I start the bbs with "bbs.bat go exit" it will autostart and then exit to DOS when shutdown.

I start the BBS with another BAT file that sets up a 250mb (xmsdsk) RAM drive, copies the BBS folder to it and launches from there. Then on shutdown, it copies (xxcopy16) all changed files back to the drive (which is actually an IDE flash drive)

In case anyone else wants to make this mod to the BBS - here is what I did. Starting at around like 134 (give or take a few) i added two lines to check the command like param. Look for the :mbbsdone label and add these two lines checking %2 to exit or do whatever you want on shutdown

:mbbsdone

@rem If exit was passed as the 2nd param, just exit to DOS
if "%2" == "EXIT" goto gotodos
if "%2" == "exit" goto gotodos

if errorlevel 80 goto finbbs
if errorlevel 50 goto dfwbbs
if errorlevel 49 goto delflag
if errorlevel 14 goto msh4
if errorlevel 13 goto msh3
if errorlevel 12 goto msh2
if errorlevel 11 goto msh1
if errorlevel 1 goto delflag
if not exist bbsdn.bat goto nobbsdn0

Post Reply