>Basically the reason I want to be able to have DOSemu load up and run a
>specific batch file and exit out when it is finished is because a want to
be
>able to set up telnet nodes that will run in the background seamlessly with
>Linux.  I have found that I am able to telnet into my box.  Log on as
BBS ->
>load up DOSemu and then load directly into telegard  as if going from a
>front end mailer and then from there I can go about my business on the BBS
>and then log off which would exit out of telegard and then I can exit
dosemu
>and then end the telnet session.

That's how it works on our SearchLight BBS.

>A) be able to send any DOSemu stuff like the text that comes up on bootup
to
>   NULL so it isn't diplayed to the user.

Haven't bothered, so they see a dos session booting. So what?

>B) have DOSemu run a batchfile which will load telegard up in network mode
>   directly into the bbs.

You can specify which config.sys/autoexec.bat dosemu uses to start up. This
way I can also boot up a normal dosemu session for maintenence etc. I use a
"dos -u nodeX" (where x is a number), and then in my dosemu.conf file I do
something like :

--- from dosemu.conf begin
ifdef u_node1
  $_emusys = "ROI"
  $_emubat = "N1"
  $_com3 = "/dev/ttyS2"
endif

ifdef u_node2
  $_emusys = "ROI"
  $_emubat = "N2"
  $_com4 = "/dev/ttyS3"
endif
--- from dosemu.conf end

This way config.roi is run instead of config.sys, and autoexec.nX (the same
X as before) is what starts the node. In autoexec.n1 (for example) I have :

--- autoexec.n1 begin
call auto.bat

fossil

l:
cd \slbbs\node1
l:\slbbs\slbbs.exe
exitemu
--- autoexec.n1 end

auto.bat contains the stuff that all the nodes do (putting it in just one
place). I think you can figure out what the rest does :)

>C) when telegard exits the batchfile would run exitemu and then from there
>   the telnet session would end.

See above. Make sure your path contains the dosemu utils.

>Is this possible?  Is it possible to create HD images for various users?
>(ie. BBS)

There's no need for that using the way we do it. I'm using a virtual fopppy
as my A: (contains my bootup config described above, the dosemu tools) and
using

device=a:\dosemu\emufs.sys /roi

to mount C: as the /roi/ directory from linux (actually a FAT partition, not
that it probably matters)

>If there are any HOWTO's or its in the DOCs for DOSemu, I would be forever
>in your debt if you could show me where..

That should get you on the right track.

I still face, however, a couple of problems (not related to this setup) :

- the ongoing dosemu time bug causing any program that polls the time (like
an idle BBS displaying the current time :) to go beserk at midnight. I'm
waiting to see if the recent patch posted here works before I install it -
got bitten last time (!)

- I need a program/setup that "fakes" a serial port using a server-type
process (ie: dosemu thinks it's a modem, but it's actually a process
accepting incoming telnet "calls". Like OS/2s vmodem which is really good).
I had a little play with tty/ptty's but haven't got the time to do it
properly at this stange.

Hope this helps (maybe this is a FAQ?)
Simon


Reply via email to