• Tickit calling AddFiles.exe

    From Gringo@VERT/ELGRINGO to All on Wednesday, September 30, 2020 15:37:31
    Hi all,

    I found my problem with tickit not calling addfiles.exe correctly in Windows 10.
    Everytime the .exe is called from tickit.js, the output is :

    SBBSCTRL environment variable not set.

    So i thought it would be an easy fix to just issue a setx sbbsctrl = \sbbs\ctrl.

    But that did not do the trick.

    I tried creating a batch file which would issue a set SBBSCTRL before calling addfiles.exe, i still get the same error message.

    I also modified the JS to issue a process.env call to set the environment variables before the call.

    I am not a JS expert but it looks as if Javascript is not using the environment variables.
    Any ideas ?

    Thanks :)
    ---
    ■ Synchronet ■ ElGringo BBS - bbs.el-gringo.ca
  • From Digital Man@VERT to Gringo on Wednesday, September 30, 2020 16:25:22
    Re: Tickit calling AddFiles.exe
    By: Gringo to All on Wed Sep 30 2020 03:37 pm

    Hi all,

    I found my problem with tickit not calling addfiles.exe correctly in Windows 10.
    Everytime the .exe is called from tickit.js, the output is :

    SBBSCTRL environment variable not set.

    So i thought it would be an easy fix to just issue a setx sbbsctrl = \sbbs\ctrl.

    But that did not do the trick.

    I tried creating a batch file which would issue a set SBBSCTRL before calling addfiles.exe, i still get the same error message.

    I also modified the JS to issue a process.env call to set the environment variables before the call.

    I am not a JS expert but it looks as if Javascript is not using the environment variables.
    Any ideas ?

    Did you read this: http://wiki.synchro.net/config:env ?

    digital man

    Rush quote #62:
    He's a restless young romantic, wants to run the big machine
    Norco, CA WX: 101.6°F, 18.0% humidity, 6 mph ESE wind, 0.00 inches rain/24hrs

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From echicken@VERT/ECBBS to Gringo on Wednesday, September 30, 2020 23:14:42
    Re: Tickit calling AddFiles.exe
    By: Gringo to All on Wed Sep 30 2020 15:37:31

    SBBSCTRL environment variable not set.

    So i thought it would be an easy fix to just issue a setx sbbsctrl = \sbbs\ctrl.

    Seems like 'setx' should work, but maybe doesn't take effect until some things are restarted. I vaguely recall doing this via System Properties long ago.

    I also modified the JS to issue a process.env call to set the environment variables before the call.

    We don't have process.env here, so I imagine that generated an error.

    Most JS advice you find online will be about node.js and web browsers and won't necessarily work under Synchronet without some adaptation. Be mindful of that when trying random code that you find on Stack Overflow or whatever.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com
    ■ Synchronet ■ electronic chicken bbs - bbs.electronicchicken.com
  • From Gringo@VERT/ELGRINGO to Digital Man on Thursday, October 01, 2020 11:14:20
    Re: Tickit calling AddFiles.exe
    By: Digital Man to Gringo on Wed Sep 30 2020 04:25 pm


    Did you read this: http://wiki.synchro.net/config:env ?

    Hi Digital Man,

    Thanks! i read the wiki article, and the environement variable is correctly set in Windows. Addfiles runs correctly from the command line, but not from Javascript. I keep getting the SBBSCTRL is not set.

    Thanks for your help guys :)
    ---
    ■ Synchronet ■ ElGringo BBS - bbs.el-gringo.ca
  • From Gringo@VERT/ELGRINGO to echicken on Thursday, October 01, 2020 11:18:08
    Re: Tickit calling AddFiles.exe
    By: echicken to Gringo on Wed Sep 30 2020 11:14 pm

    things are restarted. I vaguely recall doing this via System Properties long ago.
    Thanks eChicken,

    Yes, the variable exists in system properties

    We don't have process.env here, so I imagine that generated an error.
    You are right, it generates an error :)

    I will continue my investigation,
    Thanks again,
    ---
    ■ Synchronet ■ ElGringo BBS - bbs.el-gringo.ca
  • From Digital Man@VERT to Gringo on Thursday, October 01, 2020 12:21:01
    Re: Tickit calling AddFiles.exe
    By: Gringo to Digital Man on Thu Oct 01 2020 11:14 am

    Re: Tickit calling AddFiles.exe
    By: Digital Man to Gringo on Wed Sep 30 2020 04:25 pm


    Did you read this: http://wiki.synchro.net/config:env ?

    Hi Digital Man,

    Thanks! i read the wiki article, and the environement variable is correctly set in Windows. Addfiles runs correctly from the command line, but not from Javascript. I keep getting the SBBSCTRL is not set.

    Thanks for your help guys :)

    Is the environment variable set for the entire system or just a specific user? Even if the SBBSCTRL environment variable isn't set, the latest versions of addfiles should run so long as sbbs was installed in "/sbbs".

    You can run some experiments, like ;shell from the BBS and type "echo %SBBSCTRL%" - I would expect that to work. Or create a simple one line module (e.g. mods/getenv.js) to dump the environment and run it via jsexec:
    print(JSON.stringify(env, null, 4));
    to confirm you see "SBBSCTRL" in its output.

    digital man

    Synchronet "Real Fact" #91:
    Captured chat with Wayne Bell: http://wiki.synchro.net/history:waynebell_chat Norco, CA WX: 97.5°F, 17.0% humidity, 2 mph NW wind, 0.00 inches rain/24hrs

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net