• Support JavaScript command shells (without a Baja-compiled .bin file

    From Digital Man@1:103/705 to Eric Oulashin on Tue Feb 21 00:11:25 2023
    Re: Support JavaScript command shells (without a Baja-compiled .bin file r
    By: Eric Oulashin to GitLab note in main/sbbs on Mon Feb 20 2023 11:05 pm

    https://gitlab.synchro.net/main/sbbs/-/issues/504#note_3247

    I just updated and rebuilt, to make use of my JS command shell without needing the Baja wrapper. I've noticed I can't log out now.. At the end of my JS command shell, I have bbs.logout(); and exit(); but it doesn't disconnect me. It pauses and then puts me back at my main menu, like my command shell has restarted again.

    That all sounds like expected behavior.

    I'd reply on in GitLab, but I don't see this comment on gitlab now. You delete it?
    --
    digital man (rob)

    Rush quote #74:
    A modern-day warrior mean, mean stride, today's Tom Sawyer, mean, mean pride Norco, CA WX: 55.4øF, 50.0% humidity, 0 mph NE wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Nightfox@1:103/705 to Digital Man on Tue Feb 21 09:38:54 2023
    Re: Support JavaScript command shells (without a Baja-compiled .bin file
    By: Digital Man to Eric Oulashin on Tue Feb 21 2023 12:11 am

    I just updated and rebuilt, to make use of my JS command shell without
    needing the Baja wrapper. I've noticed I can't log out now.. At the
    That all sounds like expected behavior.

    I'd reply on in GitLab, but I don't see this comment on gitlab now. You delete it?

    Yes, I deleted my comment because I found that adding a bbs.hangup(); allowed it to disconnect the user.

    It's a different behavior though. When using a Baja wrapper for a JS command shell, the user would be disconnected when the Baja wrapper was done running (which happened when the JS script was finished).

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Nightfox on Tue Feb 21 10:15:30 2023
    Re: Support JavaScript command shells (without a Baja-compiled .bin file
    By: Nightfox to Digital Man on Tue Feb 21 2023 09:38 am

    Re: Support JavaScript command shells (without a Baja-compiled .bin file
    By: Digital Man to Eric Oulashin on Tue Feb 21 2023 12:11 am

    I just updated and rebuilt, to make use of my JS command shell without
    needing the Baja wrapper. I've noticed I can't log out now.. At the
    That all sounds like expected behavior.

    I'd reply on in GitLab, but I don't see this comment on gitlab now. You delete it?

    Yes, I deleted my comment because I found that adding a bbs.hangup(); allowed it to disconnect the user.

    It's a different behavior though. When using a Baja wrapper for a JS command shell, the user would be disconnected when the Baja wrapper was done running (which happened when the JS script was finished).

    Yes, that's true (previously, if the JS terminated, the user was disconnected/logged-off), but that meant that any error in the JS would cause the session to terminate.

    Use bbs.logoff() for a normal graceful user log-off or bbs.hangup() for immediate disconnect and logoff. bbs.logout() is called automatically for you, you don't need to call it explicitly.
    --
    digital man (rob)

    Breaking Bad quote #12:
    [Walt] Looks like Keith Richards with a glass a warm milk! - Hank Schrader Norco, CA WX: 61.6øF, 46.0% humidity, 0 mph ENE wind, 0.00 inches rain/24hrs --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)