• Im trying to create a synchronet service

    From Taalmahret@VERT to All on Tuesday, October 01, 2024 15:34:32
    The services.ini has a service i created to call plink.exe in a file called plink_service.js located in the exec directory.
    the section content is as follows:
    [PlinkTunnel]
    Command = plink_service.js
    Enabled = true
    Port = 9999
    Log = true

    My first issue is that non of the log() commands are being received by synchronet. i dont see any errors. i see that the port binding message
    10/1 05:18:45p PlinkTunnel listening on socket 0.0.0.0 port 9999
    10/1 05:18:45p PlinkTunnel listening on socket :: port 9999

    no other messages are displayed. The service doesnt seem to succeed. here is the script as i am just needing help on spotting any obvious issues.

    // plink_service.js

    var username = "user";
    var remote_ip = "123.456.789.012";
    var keyfile = "path\\to\\folder\\file.ppk";
    var local_port = 23;
    var remote_port = 23;
    var redirect_output = " >plink_output.log 2>&1";

    // Build the Plink command
    var plink_cmd = 'plink.exe -batch -ssh -i ' + keyfile + ' -R ' + remote_port + ':localhost:' + local_port + ' ' + username + '@' + remote_ip;
    var result = system.exec(plink_cmd + redirect_output);

    // Log the command to the Synchronet log
    log(LOG_INFO,"Running Plink command: " + plink_cmd);
    console.print("Running Plink command: " + plink_cmd + "\n");

    // Execute the Plink command
    var result = system.exec(plink_cmd);

    // Check the result of the Plink command execution
    if (result === 0) {
    log(LOG_INFO, "Plink tunnel established successfully.");
    console.print("Plink tunnel established successfully.\n");
    } else {
    log(LOG_WARNING, "Error establishing Plink tunnel, exit code: " + result);
    console.print("Error establishing Plink tunnel, exit code: " + result);
    }

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From echicken@VERT/ECBBS to Taalmahret on Tuesday, October 01, 2024 20:35:39
    Re: Im trying to create a synchronet service
    By: Taalmahret to All on Tue Oct 01 2024 15:34:32

    no other messages are displayed. The service doesnt seem to succeed.
    here is the script as i am just needing help on spotting any obvious

    At a glance it seems okay, except that you aren't loading sbbsdefs.js so those LOG_* variables wouldn't be defined.

    I believe services are dynamic by default, meaning the script is executed when the server receives a connection. In other words, the script doesn't run when you start your BBS or recycle services, so if you're watching for log messages at this point you won't see any.

    What happens when you connect to port 9999? My expectation is you'll see some log output from this script, and an error such as "LOG_INFO is undefined".

    echicken
    electronic chicken bbs - bbs.electronicchicken.com
    ---
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com
  • From Deuce@VERT/SYNCNIX to echicken on Wednesday, October 02, 2024 13:17:14
    Re: Im trying to create a synchronet service
    By: echicken to Taalmahret on Tue Oct 01 2024 08:35 pm

    At a glance it seems okay, except that you aren't loading sbbsdefs.js so those LOG_* variables wouldn't be defined.

    Those are have actually been independent of sbbsdefs since 2009: https://gitlab.synchro.net/main/sbbs/-/blob/master/src/sbbs3/js_global.c?ref_type=heads#L5294

    They're global variables now and don't require sbbsdefs.js.

    ---
    http://DuckDuckGo.com/ a better search engine that respects your privacy.
    Mro is an idiot. Please ignore him, we keep hoping he'll go away.
    þ Synchronet þ My Brand-New BBS (All the cool SysOps run STOCK!)
  • From Deuce@VERT/SYNCNIX to echicken on Wednesday, October 02, 2024 13:19:32
    Re: Im trying to create a synchronet service
    By: Deuce to echicken on Wed Oct 02 2024 01:17 pm

    Those are have actually been independent of sbbsdefs since 2009: https://git lab.synchro.net/main/sbbs/-/blob/master/src/sbbs3/js_global.c?ref_type=heads #L5294

    They're global variables now and don't require sbbsdefs.js.

    I misspoke... 2004.
    https://gitlab.synchro.net/main/sbbs/-/commit/2dd6021

    :D

    ---
    http://DuckDuckGo.com/ a better search engine that respects your privacy.
    Mro is an idiot. Please ignore him, we keep hoping he'll go away.
    þ Synchronet þ My Brand-New BBS (All the cool SysOps run STOCK!)
  • From echicken@VERT/ECBBS to Deuce on Wednesday, October 02, 2024 15:11:23
    Re: Im trying to create a synchronet service
    By: Deuce to echicken on Wed Oct 02 2024 13:17:14

    They're global variables now and don't require sbbsdefs.js.

    Well that's handy; I had no idea.

    echicken
    electronic chicken bbs - bbs.electronicchicken.com
    ---
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com
  • From MRO@VERT/BBSESINF to Deuce on Wednesday, October 02, 2024 22:38:00
    Re: Im trying to create a synchronet service
    By: Deuce to echicken on Wed Oct 02 2024 01:17 pm

    Re: Im trying to create a synchronet service
    By: echicken to Taalmahret on Tue Oct 01 2024 08:35 pm

    At a glance it seems okay, except that you aren't loading sbbsdefs.js so

    http://DuckDuckGo.com/ a better search engine that respects your privacy.
    Mro is an idiot. Please ignore him, we keep hoping he'll go away.

    your wife has a dick nose!
    ---
    þ Synchronet þ ::: BBSES.info - free BBS services :::
  • From Deuce@VERT/SYNCNIX to MRO on Thursday, October 03, 2024 00:28:09
    Re: Im trying to create a synchronet service
    By: MRO to Deuce on Wed Oct 02 2024 10:38 pm

    your wife has a dick nose!

    Imagine my sadness when I finally came back to announce a new version of SyncTERM and discovered that the network is more dead than ever, but you're still here doing your best to drive away the last few stragglers.

    Thanks for reminding me why I stopped participating.

    ---
    http://DuckDuckGo.com/ a better search engine that respects your privacy.
    Mro is an idiot. Please ignore him, we keep hoping he'll go away.
    þ Synchronet þ My Brand-New BBS (All the cool SysOps run STOCK!)
  • From MRO@VERT/BBSESINF to Deuce on Thursday, October 03, 2024 00:37:03
    Re: Im trying to create a synchronet service
    By: Deuce to MRO on Thu Oct 03 2024 12:28 am

    Re: Im trying to create a synchronet service
    By: MRO to Deuce on Wed Oct 02 2024 10:38 pm

    your wife has a dick nose!

    Imagine my sadness when I finally came back to announce a new version of SyncTERM and discovered that the network is more dead than ever, but you're still here doing your best to drive away the last few stragglers.

    Thanks for reminding me why I stopped participating.

    yep, all my fault. enjoy that dicknose pegging tonight.
    ---
    þ Synchronet þ ::: BBSES.info - free BBS services :::
  • From Digital Man@VERT to Taalmahret on Thursday, October 03, 2024 00:21:19
    Re: Im trying to create a synchronet service
    By: Taalmahret to All on Tue Oct 01 2024 03:34 pm

    The services.ini has a service i created to call plink.exe in a file called plink_service.js located in the exec directory.
    the section content is as follows:
    [PlinkTunnel]
    Command = plink_service.js
    Enabled = true
    Port = 9999
    Log = true

    My first issue is that non of the log() commands are being received by synchronet. i dont see any errors. i see that the port binding message
    10/1 05:18:45p PlinkTunnel listening on socket 0.0.0.0 port 9999
    10/1 05:18:45p PlinkTunnel listening on socket :: port 9999

    no other messages are displayed. The service doesnt seem to succeed. here is the script as i am just needing help on spotting any obvious issues.

    Your service would not be executed until the Synchronet Services Server (that's mouthful) received an incoming connection on TCP port 9999. You didn't mention initiating a connection to that port from a TCP client (e.g. nc) - did you?

    Also, the JS 'console' object isn't available to services, so that part of your script is definitely going to fail with an error when it does get executed.
    --
    digital man (rob)

    This Is Spinal Tap quote #44:
    It really, it does disturb me, but i'll rise above it; I'm a professional. Norco, CA WX: 74.0øF, 61.0% humidity, 0 mph WNW wind, 0.00 inches rain/24hrs ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From kk4qbn@VERT/KK4QBN to Deuce on Thursday, October 03, 2024 07:49:05
    Re: Im trying to create a synchronet service
    By: Deuce to MRO on Thu Oct 03 2024 00:28:09

    Imagine my sadness when I finally came back to announce a new version of SyncTERM and discovered that the network is more dead than ever, but you're still here doing your best to drive away the last few stragglers.

    Thank GOD, I knew there had to be more than just a couple people who felt
    the same way I do about it..


    Thanks for reminding me why I stopped participating.

    He says "I've never run anyone away from DoveNet" Bullcrap!

    Look, nothing wrong with the occasional "Good natured ribbing" but this dude goes waaaay over that.. He has run plenty of people away, but what is worse, is others have joined, seen what he does, and then thinks "well thats the norm for dovenet" and they either leave before getting started, or act just like him.

    I'ts definatly nothing that should be happening in a network that "offers" so much support for different softwares. I mean, if he wanted to keep in in the debate area, cool okay, but don't come to the support areas with that crap.
    ---
    Tim (kk4qbn)
    +o kk4qbn.synchro.net
    þ Synchronet þ KK4QBN BBS - kk4qbn.synchro.net - Chatsworth, GA USA
  • From Deuce@VERT/SYNCNIX to kk4qbn on Thursday, October 03, 2024 10:36:50
    Re: Im trying to create a synchronet service
    By: kk4qbn to Deuce on Thu Oct 03 2024 07:49 am

    I'ts definatly nothing that should be happening in a network that "offers" so much support for different softwares. I mean, if he wanted to keep in in the debate area, cool okay, but don't come to the support areas with that crap.

    Out of fairness, my tagline which I had frankly completely forgotten about was in this sub, and would never have appeared in Debate. From his point of view, I started it (in 2015 when I last updated my tagline), and I started it here.

    ---
    http://DuckDuckGo.com/ a better search engine that respects your privacy.
    Mro is an idiot. Please ignore him, we keep hoping he'll go away.
    þ Synchronet þ My Brand-New BBS (All the cool SysOps run STOCK!)
  • From Digital Man@VERT to Deuce on Thursday, October 03, 2024 17:10:06
    Re: Im trying to create a synchronet service
    By: Deuce to kk4qbn on Thu Oct 03 2024 10:36 am

    Out of fairness, my tagline which I had frankly completely forgotten about was in this sub, and would never have appeared in Debate. From his point of view, I started it (in 2015 when I last updated my tagline), and I started it here.

    You're the bigger man, not physically, but yeah, probably physically too. :-) --
    digital man (rob)

    Breaking Bad quote #24:
    If I had to guess, I'd say that [Tortuga] is Spanish for asshole. - Hank
    Norco, CA WX: 89.9øF, 39.0% humidity, 7 mph SW wind, 0.00 inches rain/24hrs
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From MRO@VERT/BBSESINF to Digital Man on Thursday, October 03, 2024 23:40:07
    Re: Im trying to create a synchronet service
    By: Digital Man to Deuce on Thu Oct 03 2024 05:10 pm

    Re: Im trying to create a synchronet service
    By: Deuce to kk4qbn on Thu Oct 03 2024 10:36 am

    Out of fairness, my tagline which I had frankly completely forgotten about was in this sub, and would never have appeared in Debate. From his point of view, I started it (in 2015 when I last updated my tagline), and I started it here.

    You're the bigger man, not physically, but yeah, probably physically too. :-)

    well how fat has he got? i'm 6'2 and 300 ish. probably a bit less.
    but i'm more football player/farm boy than round.

    oh i see the methhead tim smith chimed in. His butthurt never ends.
    ---
    þ Synchronet þ ::: BBSES.info - free BBS services :::
  • From Gamgee@VERT/PALANTIR to MRO on Friday, October 04, 2024 07:52:00
    MRO wrote to Digital Man <=-

    Out of fairness, my tagline which I had frankly completely forgotten about was in this sub, and would never have appeared in Debate. From his point of view, I started it (in 2015 when I last updated my tagline), and I started it here.

    You're the bigger man, not physically, but yeah, probably physically too. :-)

    well how fat has he got? i'm 6'2 and 300 ish. probably a bit less.
    but i'm more football player/farm boy than round.

    No, you're fat. You can call it whatever you want, but 6'2 and 300 is simply.... fat. There is no other correct word. Go eat a Twinkie.



    ... Post may contain information unsuitable for overly sensitive persons.
    --- MultiMail/Linux v0.52
    þ Synchronet þ Palantir BBS * palantirbbs.ddns.net * Pensacola, FL
  • From Dumas Walker@VERT/CAPCITY2 to DEUCE on Friday, October 04, 2024 10:11:00
    Imagine my sadness when I finally came back to announce a new version of SyncTERM

    Nice, thanks for working on it!


    * SLMR 2.1a * Remember, to a computer 1 + 1 = 10.
    ---
    þ Synchronet þ CAPCITY2 * capcity2.synchro.net * Telnet/SSH:2022/Rlogin/HTTP
  • From MRO@VERT/BBSESINF to Dumas Walker on Friday, October 04, 2024 23:22:36
    Re: Im trying to create a syn
    By: Dumas Walker to DEUCE on Fri Oct 04 2024 10:11 am

    Imagine my sadness when I finally came back to announce a new version of SyncTERM

    Nice, thanks for working on it!

    dont waste your time trying to talk to him. i chased him away like all the others.
    ---
    þ Synchronet þ ::: BBSES.info - free BBS services :::