• Window title

    From Cmech@21:2/117 to G00r00 on Thursday, May 18, 2017 12:58:23
    Hi G00r00,

    For my script to work for keeping MIS up, it needs to have a unique name (now MIS & MIS2 are the same name). Could you possibly add " v2" or something to the

    title? MIS finally shut itself down for no reason so I need my script running again. {chuckle} For now I moved everything back to MIS and don't even start up

    MIS2 to begin with so it's working for now. :)


    .- Keep the faith, --------------------------------------------------.
    | |
    | Ben aka cMech Web: http|ftp|binkp|telnet://cmech.dynip.com |
    | Email: fido4cmech(at)lusfiber.net |
    | Home page: http://cmech.dynip.com/homepage/ | `----------- WildCat! Board 24/7 +1-337-984-4794 any BAUD 8,N,1 ---'

    ... Please yell "DOWN" into the modem to start your D/L.
    --- GoldED+/W32-MSVC v1.1.5-b20170303 ... via Mystic BBS!
    * Origin: FSXNet - Positronium: telnet://cmech.dynip.com (21:2/117)
  • From g00r00@21:1/108 to Cmech on Thursday, May 18, 2017 18:56:43
    For my script to work for keeping MIS up, it needs to have a unique name (now MIS & MIS2 are the same name). Could you possibly add " v2" or something to the
    title? MIS finally shut itself down for no reason so I need my script

    I am assuming you're using Windows and a batch file? If you want a MIS loop you'd look at the errorlevels and then loop if its not a "normal" exit (255,
    10 and 1 are normal exits):

    :start

    mis
    if errorlevel 255 goto done
    if errorlevel 10 goto done
    if errorlevel 1 goto done
    goto start

    :done

    --- Mystic BBS v1.12 A34 (Windows/64)
    * Origin: Sector 7 [Mystic BBS WHQ] (21:1/108)
  • From Cmech@21:2/117 to G00r00 on Thursday, May 18, 2017 18:19:48
    * An ongoing debate between g00r00 and Cmech rages on ...

    For my script to work for keeping MIS up, it needs to have a
    unique name (now MIS & MIS2 are the same name). Could you
    possibly add " v2" or something to the title? MIS finally shut
    itself down for no reason so I need my script

    I am assuming you're using Windows and a batch file? If you want a
    MIS loop you'd look at the errorlevels and then loop if its not a
    "normal" exit (255, 10 and 1 are normal exits):

    Ok I'll check that out, but right now I rely on the Start cmd so that may not work.


    .- Keep the faith, --------------------------------------------------.
    | |
    | Ben aka cMech Web: http|ftp|binkp|telnet://cmech.dynip.com |
    | Email: fido4cmech(at)lusfiber.net |
    | Home page: http://cmech.dynip.com/homepage/ | `----------- WildCat! Board 24/7 +1-337-984-4794 any BAUD 8,N,1 ---'

    ... Canada should annex the U.S.A.
    --- GoldED+/W32-MSVC v1.1.5-b20170303 ... via Mystic BBS!
    * Origin: FSXNet - Positronium: telnet://cmech.dynip.com (21:2/117)
  • From Cmech@21:2/117 to G00r00 on Thursday, May 18, 2017 19:01:27
    * An ongoing debate between g00r00 and Cmech rages on ...

    For my script to work for keeping MIS up, it needs to have a
    unique name (now MIS & MIS2 are the same name). Could you
    possibly add " v2" or something to the title? MIS finally shut
    itself down for no reason so I need my script

    I am assuming you're using Windows and a batch file? If you want a
    MIS loop you'd look at the errorlevels and then loop if its not a
    "normal" exit (255, 10 and 1 are normal exits):

    :start
    mis
    if errorlevel 255 goto done
    if errorlevel 10 goto done
    if errorlevel 1 goto done
    goto start
    :done

    Almost {chuckle} the above script will restart ONLY if the errorlevel is 0 since in a batch file "if errorlevel" translates into "if errorlevel is equal to or higher than" ... The only question I have is errorlevel 0, a normal exit by most standards. How does MIS & MIS2 use zero exits, if at all?


    This is what I ended up with:

    === Cut ===
    @Echo off
    isdate >>\mystic\miserror.mylog

    :start
    cd \mystic

    mis.exe
    if errorlevel 255 goto exit
    if errorlevel 11 goto error
    if errorlevel 10 goto exit
    if errorlevel 2 goto error
    if errorlevel 1 goto exit

    :error
    logmsg è MIS ABend %ERRORLEVEL% >>\mystic\miserror.mylog
    echo
    goto start

    :exit
    === Cut ===


    An example log it generates:

    === Cut ===

    Today is Thu May 18 2017 138
     18:46:06 è MIS2 ABend 0
     18:46:17 è MIS2 ABend 0
     18:47:17 è MIS2 ABend 0
     18:47:27 è MIS2 ABend 0
     18:47:41 è MIS2 ABend 0
    === Cut ===

    The above was generated by trying to manually shutdown MIS2 over & over again {chuckle} which returns 0!


    .- Keep the faith, --------------------------------------------------.
    | |
    | Ben aka cMech Web: http|ftp|binkp|telnet://cmech.dynip.com |
    | Email: fido4cmech(at)lusfiber.net |
    | Home page: http://cmech.dynip.com/homepage/ | `----------- WildCat! Board 24/7 +1-337-984-4794 any BAUD 8,N,1 ---'

    ... When I cook beef, the only ingredient is "beef".
    --- GoldED+/W32-MSVC v1.1.5-b20170303 ... via Mystic BBS!
    * Origin: FSXNet - Positronium: telnet://cmech.dynip.com (21:2/117)
  • From g00r00@21:1/108 to Cmech on Friday, May 19, 2017 13:11:18
    Almost {chuckle} the above script will restart ONLY if the errorlevel is
    0 since in a batch file "if errorlevel" translates into "if errorlevel

    Yep, I understand how they work and the example batch I gave you for MIS
    should do what it is supposed to do. :)

    is equal to or higher than" ... The only question I have is errorlevel
    0, a normal exit by most standards. How does MIS & MIS2 use zero exits,
    if at all?

    MIS exits with 255 when you shut it down from the UI (i.e. press escape), it exits with either 1 or 10 on a startup error which is a configuration
    mistake.

    Anything else is not normal...

    If the program crashes and exits unexpectedly, it will exit with a 0 which means no exitlevel. When you encounter that exit, you should reload it. If you encounter a known exit, it should exit gracefully.

    The batch file does those things.

    --- Mystic BBS v1.12 A34 (Windows/64)
    * Origin: Sector 7 [Mystic BBS WHQ] (21:1/108)
  • From Cmech@21:2/117 to G00r00 on Friday, May 19, 2017 12:38:09
    * An ongoing debate between g00r00 and Cmech rages on ...

    Anything else is not normal...
    If the program crashes and exits unexpectedly, it will exit with a 0
    which means no exitlevel. When you encounter that exit, you should
    reload it. If you encounter a known exit, it should exit gracefully.

    Ok, mine will do that, thanks.


    .- Keep the faith, --------------------------------------------------.
    | |
    | Ben aka cMech Web: http|ftp|binkp|telnet://cmech.dynip.com |
    | Email: fido4cmech(at)lusfiber.net |
    | Home page: http://cmech.dynip.com/homepage/ | `----------- WildCat! Board 24/7 +1-337-984-4794 any BAUD 8,N,1 ---'

    ... A Hawaiian Christmas - Poi To The World!
    --- GoldED+/W32-MSVC v1.1.5-b20170303 ... via Mystic BBS!
    * Origin: FSXNet - Positronium: telnet://cmech.dynip.com (21:2/117)