• Tickit calling AddFiles.exe

    From Gringo@VERT/ELGRINGO to All on Wed Sep 30 15:37:31 2020
    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 Wed Sep 30 16:25:22 2020
    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 Wed Sep 30 23:14:42 2020
    Re: Tickit calling AddFiles.exeã By: Gringo to All on Wed Sep 30 2020 15:37:31ãã Gr> SBBSCTRL environment variable not set.ãã Gr> So i thought it would be an easy fix to just issue a setx sbbsctrl =ã Gr> \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.ãã Gr> I also modified the JS to issue a process.env call to set the environmentã Gr> 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 Thu Oct 1 11:14:20 2020
    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 Thu Oct 1 11:18:08 2020
    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 Thu Oct 1 12:21:01 2020
    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ã