• weird js thing...?

    From Esc@SYNCNIX to All on Sunday, September 06, 2009 20:30:51
    Ok, I have my shell completely in .js, and most everything is going as planned.
    There is one peculiar issue, though...

    When I try to list files, I use the following command:

    bbs.menu.baja("setstr *.*" + "\r\n" + "file_list");

    The bbs tries to run baja /sbbs/exec/temp_1.src, and then launch that file.

    I have no temp_1.src. I am running 3.15 as of today, and this file is nowhere to be found. Ideas? :)

    I'll browse cvs I suppose...

    ---
    ■ Synchronet ■ My Brand-New BBS (All the cool SysOps run STOCK!)
  • From Esc@SYNCNIX to All on Sunday, September 06, 2009 20:53:44
    Re: weird js thing...?
    By: Esc to All on Sun Sep 06 2009 08:30 pm

    bbs.menu.baja("setstr *.*" + "\r\n" + "file_list");

    The bbs tries to run baja /sbbs/exec/temp_1.src, and then launch that file.

    I have no temp_1.src. I am running 3.15 as of today, and this file is nowhe to be found. Ideas? :)
    Well, as it turns out...
    Here is exactly what happens when I run the aforementioned in js..:

    Node 1 Executing external: baja /o temp_1.src
    Node 1 Executing external: *temp_1
    Node 1 !ERROR 2 [WinError 2] in exec.cpp line 724 opening "c:\sbbs\exec\temp_1.bin" etc etc etc

    However, while on the telnet node, before acknowledging the error by pressing enter, I noticed that the temp_1.src file actually _does_ exist. So my understanding is that the bbs.menu.baja creates a small baja file, compiles it, and executes it on the spot.

    HOWEVER, I don't have the temp_1.bin file...so obviously, synch is not creating that file. It may be some goofy virus protection I have not allowing baja to be launched from some other program (thoughts?). I'm still working on this.

    ---
    ■ Synchronet ■ My Brand-New BBS (All the cool SysOps run STOCK!)
  • From Nightfox@DIGDIST to Esc on Sunday, September 06, 2009 21:37:36
    Re: weird js thing...?
    By: Esc to All on Sun Sep 06 2009 20:30:51

    When I try to list files, I use the following command:

    bbs.menu.baja("setstr *.*" + "\r\n" + "file_list");

    To list files, try using this command instead:
    bbs.list_files();

    Nightfox

    ---
    ■ Synchronet ■ Digital Distortion BBS: digdist.bbsindex.com
  • From Esc@SYNCNIX to Nightfox on Monday, September 07, 2009 18:35:20
    Re: weird js thing...?
    By: Nightfox to Esc on Sun Sep 06 2009 09:37 pm

    Re: weird js thing...?
    By: Esc to All on Sun Sep 06 2009 20:30:51

    When I try to list files, I use the following command:

    bbs.menu.baja("setstr *.*" + "\r\n" + "file_list");

    To list files, try using this command instead:
    bbs.list_files();

    Nightfox


    Yeah, I suppose I could take a look at that ;) However, I got it to work. The issue was that windows 7 has ridiculous issues with letting programs launch other programs. As such, it wasn't allowing synchronet to launch baja.exe. On WinXP, it works just fine.

    ---
    ■ Synchronet ■ My Brand-New BBS (All the cool SysOps run STOCK!)
  • From Nightfox@DIGDIST to Esc on Monday, September 07, 2009 19:39:59
    Re: weird js thing...?
    By: Esc to Nightfox on Mon Sep 07 2009 18:35:20

    bbs.menu.baja("setstr *.*" + "\r\n" + "file_list");

    To list files, try using this command instead:
    bbs.list_files();

    Yeah, I suppose I could take a look at that ;) However, I got it to work issue was that windows 7 has ridiculous issues with letting programs laun other programs. As such, it wasn't allowing synchronet to launch baja.ex WinXP, it works just fine.

    Ah, interesting. Good to know you got it to work.

    By the way, your bbs.menu.baja command interested me, because I've also converted my command shell to JavaScript, but there was still one thing I had to keep in Baja: Letting the user configure their file scan pointer. The reason is that there doesn't seem to be an equivalent JavaScript function for that. What I did was, I made a Baja file that executes file_ptrs_cfg . If I could run a Baja function from within a JavaScript script, that would be nice, so that I wouldn't have to have a separate Baja script to do it.

    I tried using bbs.menu.baja, though, but bbs.menu.baja seems to be undefined. And there seems to be no mention of it in the Synchronet JavaScript documentation. Are you using it to run Baja code from within JavaScript? If so, could you point me to any documentation you used to describe how to do that?

    Nightfox

    ---
    ■ Synchronet ■ Digital Distortion BBS: digdist.bbsindex.com
  • From esc@MONTEREY to Nightfox on Tuesday, September 08, 2009 03:00:37
    Re: weird js thing...?
    By: Nightfox to Esc on Mon Sep 07 2009 07:39 pm

    I tried using bbs.menu.baja, though, but bbs.menu.baja seems to be undefined And there seems to be no mention of it in the Synchronet JavaScript documentation. Are you using it to run Baja code from within JavaScript? I so, could you point me to any documentation you used to describe how to do that?

    Actually, it's internal to a custom shell I downloaded :) If you go to theroughnecks.net and grab tracker1's shell off his site, the s3 synchronet shell, it has all the routines for launching baja commands (albeit a weird roundabout way, but it works). If you'd like I can try to clip out the important parts and email you, or if you just check out s3, I'm sure you'll find lots of useful tidbits. I based my entire board off of it.

    ---
    ■ Synchronet ■ :: montereybbs.com ::
  • From Nightfox@DIGDIST to esc on Tuesday, September 08, 2009 13:09:27
    Re: weird js thing...?
    By: esc to Nightfox on Tue Sep 08 2009 03:00:37

    Actually, it's internal to a custom shell I downloaded :) If you go to theroughnecks.net and grab tracker1's shell off his site, the s3 synchron shell, it has all the routines for launching baja commands (albeit a weir

    Ah, I have a copy of that.. I'll have a look at how it does Baja stuff. Thanks.

    Nightfox

    ---
    ■ Synchronet ■ Digital Distortion BBS: digdist.bbsindex.com
  • From Tracker1@TRN to Nightfox on Tuesday, September 08, 2009 20:01:28
    On 9/7/2009 7:39 PM, Nightfox wrote:
    I tried using bbs.menu.baja, though, but bbs.menu.baja seems to be undefined.
    And there seems to be no mention of it in the Synchronet JavaScript documentation. Are you using it to run Baja code from within JavaScript? If so, could you point me to any documentation you used to describe how to do that?

    it's from my s3 shell originally... when it was written there were several areas uncovered in js... you can download it from my bbs website.

    --
    Michael J. Ryan - http://tracker1.info/

    ... B5: You are not ready for immortaility.

    ---
    ■ Synchronet ■ Roughneck BBS - telnet://roughneckbbs.com - www.roughneckbbs.com
  • From Digital Man to Esc on Wednesday, September 09, 2009 09:33:38
    Re: weird js thing...?
    By: Esc to All on Sun Sep 06 2009 08:30 pm

    Ok, I have my shell completely in .js, and most everything is going as planned.
    There is one peculiar issue, though...

    When I try to list files, I use the following command:

    bbs.menu.baja("setstr *.*" + "\r\n" + "file_list");

    This expression makes not sense to me. bbs.menu() is a method for displaying a menu file (e.g. a Ctrl-A or ANSI file).

    The bbs tries to run baja /sbbs/exec/temp_1.src, and then launch that file.

    I have no temp_1.src. I am running 3.15 as of today, and this file is nowhere to be found. Ideas? :)

    No, I'm not clear on what you're trying to do.

    digital man

    Snapple "Real Fact" #12:
    Emus and Kangaroos cannot walk backwards.
  • From Digital Man to Esc on Wednesday, September 09, 2009 09:36:17
    Re: weird js thing...?
    By: Esc to Nightfox on Mon Sep 07 2009 06:35 pm

    Re: weird js thing...?
    By: Nightfox to Esc on Sun Sep 06 2009 09:37 pm

    Re: weird js thing...?
    By: Esc to All on Sun Sep 06 2009 20:30:51

    When I try to list files, I use the following command:

    bbs.menu.baja("setstr *.*" + "\r\n" + "file_list");

    To list files, try using this command instead:
    bbs.list_files();

    Nightfox


    Yeah, I suppose I could take a look at that ;) However, I got it to work. The issue was that windows 7 has ridiculous issues with letting programs launch other programs. As such, it wasn't allowing synchronet to launch baja.exe. On WinXP, it works just fine.

    But it's ridiculous to launch baja.exe everytime a user wants to list files. Don't do that!

    digital man

    Snapple "Real Fact" #50:
    Mosquitos have 47 teeth.
  • From Digital Man to Nightfox on Wednesday, September 09, 2009 09:41:29
    Re: weird js thing...?
    By: Nightfox to Esc on Mon Sep 07 2009 07:39 pm

    Re: weird js thing...?
    By: Esc to Nightfox on Mon Sep 07 2009 18:35:20

    bbs.menu.baja("setstr *.*" + "\r\n" + "file_list");

    To list files, try using this command instead:
    bbs.list_files();

    Yeah, I suppose I could take a look at that ;) However, I got it to work issue was that windows 7 has ridiculous issues with letting programs laun other programs. As such, it wasn't allowing synchronet to launch baja.ex WinXP, it works just fine.

    Ah, interesting. Good to know you got it to work.

    By the way, your bbs.menu.baja command interested me, because I've also converted my command shell to JavaScript, but there was still one thing I had to keep in Baja: Letting the user configure their file scan pointer.
    The reason is that there doesn't seem to be an equivalent JavaScript function for that.

    Use bbs.get_newscantime(), like so:

    bbs.new_file_time = bbs.get_newscantime(bbs.new_file_time);

    digital man

    Snapple "Real Fact" #23:
    The San Francisco Cable cars are the only mobile national monument.
  • From Nightfox@DIGDIST to Digital Man on Wednesday, September 09, 2009 11:58:23
    Re: weird js thing...?
    By: Digital Man to Nightfox on Wed Sep 09 2009 09:41:29

    had to keep in Baja: Letting the user configure their file scan pointe

    Use bbs.get_newscantime(), like so:

    bbs.new_file_time = bbs.get_newscantime(bbs.new_file_time);

    Thanks, that does what I wanted to do.

    Eric

    ---
    ■ Synchronet ■ Digital Distortion BBS: digdist.bbsindex.com