--------------------------------------------------------------------------
Setup hints for using BGFAX with Maximus/2                        11-26-96
B.J. Guillot                                              bgfax@blkbox.com
FidoNet 1:106/400                            http://www.blkbox.com/~bgfax/
--------------------------------------------------------------------------

THIS FILE ASSUMES YOU ARE RUNNING THE *OS/2* VERSION OF MAXIMUS

Because Maximus does not offer the ability to exit when it detects a fax
response code from the modem, you must run BGFAX2 in /HOST mode.  Thus,
BGFAX2 will answer the phone rather than Maximus!

1. From now on, to get your system ready to answer calls, start up your
   BBS by using the FBBS.CMD as given below
2. Be sure all the BGFAX files are copied into the directory as specified
   by the BGFAX environment variable (A "SET BGFAX=C:\BGFAX" line must
   exist in either your OS/2 CONFIG.SYS or FBBS.CMD file).
3. Make sure your BGFAX.CNF file is configured to use the proper fax class
   that your modem supports (you may need to comment and uncomment some
   lines in the BGFAX.CNF file).

You need to make a file called FBBS.CMD in the BGFAX directory.

 @echo off
 rem ***** This is an example command file for frontend mode operation
 set bgfax=c:\bgfax
 c:
 cd %bgfax%
 bgfax2 /host /sb
 if errorlevel 4 fbbs.cmd
 if errorlevel 3 local.cmd
 if errorlevel 2 fbbs.cmd
 if errorlevel 1 fbbs.cmd

The /SB switch is required to make BGFAX/2 work with Maximus/2.  This causes
BGFAX/2 to _spawn_ Maximus.  After Maximus/2 exits, BGFAX will then exit
with an errorlevel 1, which tells FBBS.CMD to restart FBBS.CMD and wait for
more calls to come in.

You also need to make a file called EXEBBS.CMD in the BGFAX directory.

        @echo off
        d:
        cd\max
        maxp -b%1 -p%2

If you want to allow local logons, you must create a LOCAL.CMD file which
tells Maximus/2 to start in local logon mode.  See Maximus documentation.

Regards,
bgfax author
