• Errorlevels problem

    From Manuel Adorni@4:902/27 to Todos on Fri Nov 11 12:48:51 2016
    ¡Hola Todos!

    I use FD 2.20c and i have problems with errorlevels after incoming BBS call.

    The FD exit ever without errorlevel (or errorlevel 0, is the same).

    Any idea???

    my batch:

    CD\FIDONET\FD
    FD.EXE
    CD\RA\NODE1
    if errorlevel 235 goto B300
    if errorlevel 236 goto B1200
    [...]

    In FDSETUP the errorlevels for every baudrates are configured correctly.

    Thanks.

    ¡Saludos!
    -=Momia=-

    --- GoldED+/DPMI32 1.1.5-040330
    * Origin: Momia BBS - telnet://momiabbs.no-ip.info (4:902/27)
  • From mark lewis@1:3634/12.73 to Manuel Adorni on Fri Nov 11 22:22:12 2016

    11 Nov 16 12:48, you wrote to Todos:

    I use FD 2.20c and i have problems with errorlevels after incoming BBS call.

    hummm...

    The FD exit ever without errorlevel (or errorlevel 0, is the same).

    Any idea???

    not yet...

    my batch:

    CD\FIDONET\FD
    FD.EXE
    CD\RA\NODE1
    if errorlevel 235 goto B300
    if errorlevel 236 goto B1200
    [...]

    you're not catching FD errorlevels in this batch...

    In FDSETUP the errorlevels for every baudrates are configured
    correctly.

    post those baud rate error levels from FD, please... the above batch is not passing the FD errorlevels to RA with the necessary -B parameter...

    are you using 4DOS? if so, i have a script that may be helpful... my entire system is managed by a 4DOS script... it does not use those errorlevels fro FD to trigger different command lines to RA... instead it processed the created BBS.BAT as a datafile and feeds that information to RA which is different than letting the BBS.BAT fire up RA... 4DOS can easily read that BBS.BAT as a data file instead of using it to execute RA with the necessary parameters...

    FWIW; i highly recommend using 4DOS/4OS2/4NT for this work... otherwise, it is simple BAT parameter passing...

    )\/(ark

    Always Mount a Scratch Monkey
    Do you manage your own servers? If you are not running an IDS/IPS yer doin' it wrong...
    ... Man dreads fame as a pig dreads fat. -Asian Proverb
    ---
    * Origin: (1:3634/12.73)
  • From Björn Felten@2:203/2 to Manuel Adorni on Sat Nov 12 07:10:56 2016
    if errorlevel 235 goto B300
    if errorlevel 236 goto B1200

    You need to check the error levels highest first. This is what my old batch file looks like:

    :loop
    s:
    cd \fd
    fd.exe
    s:
    goto exit
    if errorlevel 104 goto tcl9600
    if errorlevel 103 goto tcl9600
    if errorlevel 102 goto tcl9600
    if errorlevel 101 goto tcl4800
    if errorlevel 100 goto tcl2400
    if errorlevel 99 goto tcl1275
    if errorlevel 98 goto tcl1200
    if errorlevel 97 goto tcl300


    if errorlevel 94 goto sumwin
    if errorlevel 93 goto tranx
    if errorlevel 92 goto squish
    if errorlevel 91 goto night
    if errorlevel 90 goto conf
    if errorlevel 89 goto local
    if errorlevel 88 goto system
    if errorlevel 87 goto tclean
    if errorlevel 86 goto areaf
    if errorlevel 85 goto fm
    if errorlevel 84 goto mytcl
    if errorlevel 83 goto fd_fax

    if errorlevel 60 goto squish

    if errorlevel 58 goto daymark
    if errorlevel 57 goto koll
    if errorlevel 56 goto sdiskd
    if errorlevel 55 goto sdiskc
    if errorlevel 54 goto makenli
    if errorlevel 53 goto import
    if errorlevel 52 goto toss
    if errorlevel 51 goto scan
    if errorlevel 50 goto pack
    if errorlevel 10 goto exit
    if errorlevel 5 goto loop
    if errorlevel 1 goto exit
    goto loop




    ..

    --- Mozilla/5.0 (Windows; U; Windows NT 5.1; sv-SE; rv:1.9.1.16) Gecko/20101125
    * Origin: news://eljaco.se (2:203/2)
  • From mark lewis@1:3634/12.73 to Björn Felten on Sat Nov 12 11:49:40 2016

    12 Nov 16 07:10, you wrote to Manuel Adorni:

    if errorlevel 235 goto B300
    if errorlevel 236 goto B1200

    You need to check the error levels highest first.

    damn! i completely missed that... it is, however, one of the reasons why i like
    4DOS/4OS2/4NT...

    IF errorlevel EQ 42 GOTO do_42
    IF errorlevel EQ 95 GOTO do_95
    IF errorlevel EQ 69 GOTO report_69
    IF errorlevel LE 30 AND errorlevel NE 0 GOTO FD_ERR_%?

    then you can list the errorlevels in order of most used to least used and have the script execute faster... note the last one branches on any errorlevel less than or equal to 30 which are all reserved for frontdoor exits... instead of having a line to check each errorlevel, we use the %? which contains "the external program exit code"... then later in the script we might have a section
    like

    :FD_ERR_30
    :FD_ERR_29
    :FD_ERR_28
    :FD_ERR_27
    :FD_ERR_26
    :FD_ERR_25
    :FD_ERR_24
    :FD_ERR_23
    :FD_ERR_22
    :FD_ERR_21
    :FD_ERR_20
    :FD_ERR_19
    :FD_ERR_18
    :FD_ERR_17
    :FD_ERR_16
    :FD_ERR_15
    :FD_ERR_14
    :FD_ERR_12
    SET fdmsg=-=- FD ERROR: (%?) Reserved FD Error Code!
    GOTO LOGGER

    :FD_ERR_13
    SET fdmsg=-=- FD ERROR: (%?) Maximum number of active/nested events exceded!
    GOTO LOGGER

    :FD_ERR_11
    ECHO -=- FD ERROR: (%?) License Key Error!
    GOTO LOGGER

    :FD_ERR_10
    SET fdmsg=-=- Normal FD Exit - Terminating %0
    GOTO LOGGER

    [...]

    :LOGGER
    ECHO %fdmsg
    ECHO ! %_TIME %fdmsg >> logs\fd%node.log
    GOTO end


    another thing that could be done (without 4*) is to call dobbs.bat... with 4*, i actually parse dobbs.bat as a data file instead of using it as a script... then i use that parsed information to start RA with... in this way i have only one script file to deal with for running the mailer and the BBS... i used to also execute tossing from it but switched to background tossing using a scheduler to check if there's a semaphore indicating mail has arrived and needs
    processing...

    )\/(ark

    Always Mount a Scratch Monkey
    Do you manage your own servers? If you are not running an IDS/IPS yer doin' it wrong...
    ... I sprinkled baking powder over a couple of potatoes, it didn't work.
    ---
    * Origin: (1:3634/12.73)
  • From Manuel Adorni@4:902/27 to Björn Felten on Sat Nov 12 20:29:44 2016
    ¡Hola Björn!

    El Sábado 12 Noviembre 2016 a las 07:10, Björn Felten escribió a Manuel Adorni:

    You need to check the error levels highest first. This is what my
    old batch file looks like:

    Thanks, i resolve call FD from RA and not directly: RA.EXE -Md:\FD\FD.EXE*M


    ¡Saludos!
    -=Momia=-

    --- GoldED+/DPMI32 1.1.5-040330
    * Origin: Momia BBS - telnet://momiabbs.no-ip.info (4:902/27)
  • From mark lewis@1:3634/12.73 to Manuel Adorni on Sat Nov 12 20:05:32 2016

    12 Nov 16 20:29, you wrote to Björn Felten:

    You need to check the error levels highest first. This is what my old
    batch file looks like:

    Thanks, i resolve call FD from RA and not directly: RA.EXE
    -Md:\FD\FD.EXE*M

    that's shell to mailer mode...

    did your FD "tilts" happen before or after you went to shell to mailer mode?

    )\/(ark

    Always Mount a Scratch Monkey
    Do you manage your own servers? If you are not running an IDS/IPS yer doin' it wrong...
    ... Now, about this phony Italian accent of yours.
    ---
    * Origin: (1:3634/12.73)
  • From Manuel Adorni@4:902/27 to mark lewis on Sun Nov 13 08:24:02 2016
    ¡Hola mark!

    El Sábado 12 Noviembre 2016 a las 20:05, mark lewis escribió a Manuel Adorni:

    Thanks, i resolve call FD from RA and not directly: RA.EXE
    -Md:\FD\FD.EXE*M

    that's shell to mailer mode...

    did your FD "tilts" happen before or after you went to shell to mailer mode?

    Tilt all when FD start and show the line: "Preparing outbound mail"

    ¡Saludos!
    -=Momia=-

    --- GoldED+/DPMI32 1.1.5-040330
    * Origin: Momia BBS - telnet://momiabbs.no-ip.info (4:902/27)
  • From mark lewis@1:3634/12.73 to Manuel Adorni on Sun Nov 13 11:41:14 2016

    13 Nov 16 08:24, you wrote to me:

    Thanks, i resolve call FD from RA and not directly: RA.EXE
    -Md:\FD\FD.EXE*M

    that's shell to mailer mode...

    did your FD "tilts" happen before or after you went to shell to mailer
    mode?

    Tilt all when FD start and show the line: "Preparing outbound mail"

    can you be more specific on the term "tilt"? do you mean crash and close or maybe locking up?

    what are your FD path definitions? a pure eWAG says it sounds like it can't read or write directories it needs to read or write to...



    eWAG: educated Wild Assed Guess

    )\/(ark

    Always Mount a Scratch Monkey
    Do you manage your own servers? If you are not running an IDS/IPS yer doin' it wrong...
    ... Writing is easy. All you have to do is cross out the wrong words.
    ---
    * Origin: (1:3634/12.73)
  • From Manuel Adorni@4:902/27 to mark lewis on Tue Nov 15 09:18:26 2016
    ¡Hola mark!

    El Domingo 13 Noviembre 2016 a las 11:41, mark lewis escribió a Manuel Adorni:

    Tilt all when FD start and show the line: "Preparing outbound
    mail"

    can you be more specific on the term "tilt"? do you mean crash and
    close or maybe locking up?

    The FD tilt and i need to force close Windows. THe windows with FD dead.

    what are your FD path definitions? a pure eWAG says it sounds like it can't read or write directories it needs to read or write to...

    Well... is possible but all my directories are fine. I think that.

    ¡Saludos!
    -=Momia=-

    --- GoldED+/DPMI32 1.1.5-040330
    * Origin: Momia BBS - telnet://momiabbs.no-ip.info:2323 (4:902/27)
  • From mark lewis@1:3634/12.73 to Manuel Adorni on Tue Nov 15 21:24:46 2016

    15 Nov 16 09:18, you wrote to me:

    Tilt all when FD start and show the line: "Preparing outbound mail"

    can you be more specific on the term "tilt"? do you mean crash and
    close or maybe locking up?

    The FD tilt and i need to force close Windows. THe windows with FD dead.

    32bit or 64bit? how much time passes from good operation till full tilt?

    what are your FD path definitions? a pure eWAG says it sounds like it
    can't read or write directories it needs to read or write to...

    Well... is possible but all my directories are fine. I think that.

    ok...

    )\/(ark

    Always Mount a Scratch Monkey
    Do you manage your own servers? If you are not running an IDS/IPS yer doin' it wrong...
    ... Four food groups: canned, frozen, fast and junk.
    ---
    * Origin: (1:3634/12.73)
  • From Manuel Adorni@4:902/27 to mark lewis on Wed Nov 16 10:43:37 2016
    ¡Hola mark!

    El Martes 15 Noviembre 2016 a las 21:24, mark lewis escribió a Manuel Adorni:

    The FD tilt and i need to force close Windows. THe windows with
    FD dead.

    32bit or 64bit? how much time passes from good operation till full
    tilt?

    Windows XP 32 Bits SP3 (in Windows Server 2003 32 Bits occurrs the same).

    The time is indefinible.

    ¡Saludos!
    -=Momia=-

    --- GoldED+/DPMI32 1.1.5-040330
    * Origin: Momia BBS - telnet://momiabbs.no-ip.info:2323 (4:902/27)
  • From mark lewis@1:3634/12.73 to Manuel Adorni on Wed Nov 16 20:40:44 2016

    16 Nov 16 10:43, you wrote to me:

    The FD tilt and i need to force close Windows. THe windows with FD
    dead.

    32bit or 64bit? how much time passes from good operation till full
    tilt?

    Windows XP 32 Bits SP3 (in Windows Server 2003 32 Bits occurrs the same).

    The time is indefinible.

    i don't recall, and can't look ATM, if FD has EMS or XMS capabilities... if it does, do you have one or both selected and your OS is not set up to provide such??

    )\/(ark

    Always Mount a Scratch Monkey
    Do you manage your own servers? If you are not running an IDS/IPS yer doin' it wrong...
    ... A paddle-pop stick and some electrician's tape is cheaper than viagra.
    ---
    * Origin: (1:3634/12.73)