Subj : Im trying to create a synchronet service
To   : Taalmahret
From : Digital Man
Date : Thu Oct 03 2024 12:21 am

 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