• Mutil

    From Nitro@21:1/999 to All on Fri Feb 21 16:18:50 2020
    Greetings,

    New mystic sysop here. I have a question about mutil. when I see it run in the MIS after it performs a task it usually ends with a "Res:" then a value.
    I have had Res:0. Res:1 and just now see a Res:255. Is there somewhere I can see what these mean, or perhaps anyone out there know?

    Regards,

    Rick

    --- Mystic BBS v1.12 A44 2020/02/04 (Windows/64)
    * Origin: Abacus BBS (21:1/999)
  • From g00r00@21:1/108 to Nitro on Sat Feb 22 08:45:01 2020
    run in the MIS after it performs a task it usually ends with a "Res:"
    then a value. I have had Res:0. Res:1 and just now see a Res:255. Is there somewhere I can see what these mean, or perhaps anyone out there know?

    Those codes are returned from the program that executed or the OS, so it can vary depending on what you're executing and what OS you're doing it with.

    Technically speaking (for Windows) Microsoft says this:

    The status returned is one of the following values:

    The exit value specified in the ExitProcess or TerminateProcess function.
    The return value from the main or WinMain function of the process.
    The exception value for an unhandled exception that caused the process to terminate.

    To illustrate, you could make a "test.bat" and in it put "exit /b 50" and Mystic would probably show 50 in the Result field.

    --- Mystic BBS v1.12 A45 2020/02/18 (Windows/64)
    * Origin: Sector 7 (21:1/108)