Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

No more blah, blah, blah! -- Kirk, "Miri", stardate 2713.6


computers / alt.bbs.synchronet / Loadable Modules and full/relative paths

SubjectAuthor
* Loadable Modules and full/relative pathsNightfox
`* Loadable Modules and full/relative pathsDigital Man
 +* Loadable Modules and full/relative pathsAndre
 |`- Loadable Modules and full/relative pathsNightfox
 `* Loadable Modules and full/relative pathsNightfox
  `- Loadable Modules and full/relative pathsDigital Man

1
Loadable Modules and full/relative paths

<6227E716.80379.dove_sync@digitaldistortionbbs.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=15540&group=alt.bbs.synchronet#15540

  copy link   Newsgroups: alt.bbs.synchronet
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx46.iad.POSTED!not-for-mail
From: night...@DIGDIST.remove-9ka-this (Nightfox)
Subject: Loadable Modules and full/relative paths
Message-ID: <6227E716.80379.dove_sync@digitaldistortionbbs.com>
X-Comment-To: Digital Man
Organization: Digital Distortion
Newsgroups: alt.bbs.synchronet
X-FTN-PID: Synchronet 3.19c-Win32 master/70898b5bb Feb 2 2022 MSC 1928
X-FTN-MSGID: 46238.sync@1:103/705 268dd743
X-FTN-CHRS: CP437 2
WhenImported: 20220308153030-0800 41e0
WhenExported: 20220308155405-0800 41e0
ExportedFrom: DIGDIST dove_sync 80379
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
X-Gateway: vert.synchro.net [Synchronet 3.19c-Win32 NewsLink 1.113]
Lines: 15
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Tue, 08 Mar 2022 23:54:18 UTC
Date: Tue, 8 Mar 2022 15:30:30 -0800
X-Received-Bytes: 2324
 by: Nightfox - Tue, 8 Mar 2022 23:30 UTC

To: Digital Man
Hi DM,

For the Loadable Modules configuration in SCFG, it seems it doesn't accept full/relative paths, is that correct?
I've started working on updating my message reader so that it can be used directly as a loadable module (without needing separate loadable module scripts), but one possible issue is that DDMsgReader is under sbbs/xtrn/DDMsgReader (and it's actually one level deeper on my system). I've tried specifying a relative path + DDmsgReader in SCFG, but then Synchronet gave an error saying it couldn't execute it. I also saw that the wiki says only the name of the file is accepted (no .js or .bin file extension) - I assume that also means no path prefix as well?
https://wiki.synchro.net/util:scfg:system#loadable_modules

One workaround I thought of was to create another, DDMsgReader.js which one could place in sbbs/mods, which would just build a string of arguments from argv and then call bbs.exec() to run the actual DDMsgReader. Or perhaps DDMsgReader.js could be moved into sbbs/exec, and its config files could be moved to sbbs/ctrl etc., but it seems cleaner to have all of its files together under /xtrn/DDMsgReader.

Nightfox

---
■ Synchronet ■ Digital Distortion: digitaldistortionbbs.com
--- Synchronet 3.19c-Win32 NewsLink 1.113
* Vertrauen - Riverside County, California - telnet://vert.synchro.net

Loadable Modules and full/relative paths

<62281FE9.46243.sync@vert.synchro.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=15544&group=alt.bbs.synchronet#15544

  copy link   Newsgroups: alt.bbs.synchronet
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!news.freedyn.de!newsreader4.netcologne.de!news.netcologne.de!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx02.iad.POSTED!not-for-mail
From: digital....@vert.synchro.net.remove-yd-this (Digital Man)
Subject: Loadable Modules and full/relative paths
Message-ID: <62281FE9.46243.sync@vert.synchro.net>
X-Comment-To: Nightfox
Organization: Vertrauen
Newsgroups: alt.bbs.synchronet
In-Reply-To: <6227E716.80379.dove_sync@digitaldistortionbbs.com>
References: <6227E716.80379.dove_sync@digitaldistortionbbs.com>
X-FTN-PID: Synchronet 3.19c-Win32 master/ceb010484 Mar 7 2022 MSC 1929
X-FTN-MSGID: 46243.sync@1:103/705 268e0a8c
X-FTN-REPLY: 46238.sync@1:103/705 268dd743
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
X-Gateway: vert.synchro.net [Synchronet 3.19c-Win32 NewsLink 1.113]
Lines: 39
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Wed, 09 Mar 2022 03:32:53 UTC
Date: Tue, 8 Mar 2022 19:32:57 -0800
X-Received-Bytes: 2906
 by: Digital Man - Wed, 9 Mar 2022 03:32 UTC

To: Nightfox
Re: Loadable Modules and full/relative paths
By: Nightfox to Digital Man on Tue Mar 08 2022 03:30 pm

> Hi DM,
>
> For the Loadable Modules configuration in SCFG, it seems it doesn't accept
> full/relative paths, is that correct?

It's a mix. Have you looked at the online (F1) help? It clarifies which loadable modules use full command-lines are which are just module names.

> I've started working on updating my message reader so that it can be used
> directly as a loadable module (without needing separate loadable module
> scripts), but one possible issue is that DDMsgReader is under
> sbbs/xtrn/DDMsgReader (and it's actually one level deeper on my system).
> I've tried specifying a relative path + DDmsgReader in SCFG, but then
> Synchronet gave an error saying it couldn't execute it. I also saw that the
> wiki says only the name of the file is accepted (no .js or .bin file
> extension) - I assume that also means no path prefix as well?
> https://wiki.synchro.net/util:scfg:system#loadable_modules

Correct.

> One workaround I thought of was to create another, DDMsgReader.js which one
> could place in sbbs/mods, which would just build a string of arguments from
> argv and then call bbs.exec() to run the actual DDMsgReader. Or perhaps
> DDMsgReader.js could be moved into sbbs/exec, and its config files could be
> moved to sbbs/ctrl etc., but it seems cleaner to have all of its files
> together under /xtrn/DDMsgReader.

Yup, either of those seem like viable workarounds.
--
digital man (rob)

Sling Blade quote #4:
Doyle: wimpy-ass kids or mental retards.. she got one of each livin' with her.
Norco, CA WX: 57.5°F, 29.0% humidity, 6 mph SSE wind, 0.00 inches rain/24hrs
--- Synchronet 3.19c-Win32 NewsLink 1.113
* Vertrauen - Riverside County, California - telnet://vert.synchro.net

Loadable Modules and full/relative paths

<622886FF.5211.dove-syncdisc@bbs.radiomentor.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=15555&group=alt.bbs.synchronet#15555

  copy link   Newsgroups: alt.bbs.synchronet
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx98.iad.POSTED!not-for-mail
From: and...@RDOMENTR.remove-pf8-this (Andre)
Subject: Loadable Modules and full/relative paths
Message-ID: <622886FF.5211.dove-syncdisc@bbs.radiomentor.org>
X-Comment-To: Digital Man
Organization: Radio Mentor BBS
Newsgroups: alt.bbs.synchronet
In-Reply-To: <62281FE9.46243.sync@vert.synchro.net>
References: <62281FE9.46243.sync@vert.synchro.net>
X-FTN-PID: Synchronet 3.19c-Linux master/4280408dd Mar 8 2022 GCC 9.3.0
X-FTN-MSGID: 46254.sync@1:103/705 268e72a2
X-FTN-REPLY: 46243.sync@1:103/705 268e0a8c
X-FTN-CHRS: CP437 2
WhenImported: 20220309045247-0600 4168
WhenExported: 20220309045657-0600 4168
ExportedFrom: RDOMENTR dove-syncdisc 5211
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
X-Gateway: vert.synchro.net [Synchronet 3.19c-Win32 NewsLink 1.113]
Lines: 16
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Wed, 09 Mar 2022 10:56:59 UTC
Date: Wed, 9 Mar 2022 04:52:47 -0600
X-Received-Bytes: 1745
 by: Andre - Wed, 9 Mar 2022 10:52 UTC

To: Digital Man
Re: Loadable Modules and full/relative paths
By: Digital Man to Nightfox on Tue Mar 08 2022 07:32 pm

DM> It's a mix. Have you looked at the online (F1) help? It clarifies which
DM> loadable modules use full command-lines are which are just module names.

The wiki page also states which is which (they're separate tables). But he wants to force the path even on the ones that accept parameters, which AFAIK he can't do.

- Andre

---
■ Synchronet ■ Radio Mentor BBS - bbs.radiomentor.org
--- Synchronet 3.19c-Win32 NewsLink 1.113
* Vertrauen - Riverside County, California - telnet://vert.synchro.net

Loadable Modules and full/relative paths

<6228DE26.80402.dove_sync@digitaldistortionbbs.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=15562&group=alt.bbs.synchronet#15562

  copy link   Newsgroups: alt.bbs.synchronet
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx39.iad.POSTED!not-for-mail
From: night...@DIGDIST.remove-ycz-this (Nightfox)
Subject: Loadable Modules and full/relative paths
Message-ID: <6228DE26.80402.dove_sync@digitaldistortionbbs.com>
X-Comment-To: Digital Man
Organization: Digital Distortion
Newsgroups: alt.bbs.synchronet
In-Reply-To: <62281FE9.46243.sync@vert.synchro.net>
References: <62281FE9.46243.sync@vert.synchro.net>
X-FTN-PID: Synchronet 3.19c-Win32 master/70898b5bb Feb 2 2022 MSC 1928
X-FTN-MSGID: 46262.sync@1:103/705 268ecf4f
X-FTN-REPLY: 46243.sync@1:103/705 268e0a8c
X-FTN-CHRS: CP437 2
WhenImported: 20220309090438-0800 41e0
WhenExported: 20220309093209-0800 41e0
ExportedFrom: DIGDIST dove_sync 80402
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
X-Gateway: vert.synchro.net [Synchronet 3.19c-Win32 NewsLink 1.113]
Lines: 29
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Wed, 09 Mar 2022 17:32:12 UTC
Date: Wed, 9 Mar 2022 09:04:38 -0800
X-Received-Bytes: 2370
 by: Nightfox - Wed, 9 Mar 2022 17:04 UTC

To: Digital Man
Re: Loadable Modules and full/relative paths
By: Digital Man to Nightfox on Tue Mar 08 2022 07:32 pm

>> For the Loadable Modules configuration in SCFG, it seems it doesn't
>> accept full/relative paths, is that correct?

DM> It's a mix. Have you looked at the online (F1) help? It clarifies which
DM> loadable modules use full command-lines are which are just module names.

I've had a look. Does "full command-line" include a leading path, or does that just mean it can take command-line parameters?

>> One workaround I thought of was to create another, DDMsgReader.js
>> which one could place in sbbs/mods, which would just build a string of
>> arguments from argv and then call bbs.exec() to run the actual
>> DDMsgReader. Or perhaps DDMsgReader.js could be moved into sbbs/exec,
>> and its config files could be moved to sbbs/ctrl etc., but it seems
>> cleaner to have all of its files together under /xtrn/DDMsgReader.

DM> Yup, either of those seem like viable workarounds.

I suppose that will suffice.

Nightfox

---
■ Synchronet ■ Digital Distortion: digitaldistortionbbs.com
--- Synchronet 3.19c-Win32 NewsLink 1.113
* Vertrauen - Riverside County, California - telnet://vert.synchro.net

Loadable Modules and full/relative paths

<6228DF87.80403.dove_sync@digitaldistortionbbs.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=15563&group=alt.bbs.synchronet#15563

  copy link   Newsgroups: alt.bbs.synchronet
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx39.iad.POSTED!not-for-mail
From: night...@DIGDIST.remove-ycz-this (Nightfox)
Subject: Loadable Modules and full/relative paths
Message-ID: <6228DF87.80403.dove_sync@digitaldistortionbbs.com>
X-Comment-To: Andre
Organization: Digital Distortion
Newsgroups: alt.bbs.synchronet
In-Reply-To: <622886FF.5211.dove-syncdisc@bbs.radiomentor.org>
References: <622886FF.5211.dove-syncdisc@bbs.radiomentor.org>
X-FTN-PID: Synchronet 3.19c-Win32 master/70898b5bb Feb 2 2022 MSC 1928
X-FTN-MSGID: 46263.sync@1:103/705 268ecf51
X-FTN-REPLY: 46254.sync@1:103/705 268e72a2
X-FTN-CHRS: CP437 2
WhenImported: 20220309091031-0800 41e0
WhenExported: 20220309093209-0800 41e0
ExportedFrom: DIGDIST dove_sync 80403
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
X-Gateway: vert.synchro.net [Synchronet 3.19c-Win32 NewsLink 1.113]
Lines: 20
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Wed, 09 Mar 2022 17:32:13 UTC
Date: Wed, 9 Mar 2022 09:10:31 -0800
X-Received-Bytes: 1952
 by: Nightfox - Wed, 9 Mar 2022 17:10 UTC

To: Andre
Re: Loadable Modules and full/relative paths
By: Andre to Digital Man on Wed Mar 09 2022 04:52 am

DM>> It's a mix. Have you looked at the online (F1) help? It clarifies
DM>> which loadable modules use full command-lines are which are just
DM>> module names.

An> The wiki page also states which is which (they're separate tables). But he
An> wants to force the path even on the ones that accept parameters, which
An> AFAIK he can't do.

Yeah, I don't really need to pass parameters, I just was curious if I could use a loadable module in a different path than what Synchronet would use by default.

Nightfox

---
■ Synchronet ■ Digital Distortion: digitaldistortionbbs.com
--- Synchronet 3.19c-Win32 NewsLink 1.113
* Vertrauen - Riverside County, California - telnet://vert.synchro.net

Loadable Modules and full/relative paths

<6228E9F3.46268.sync@vert.synchro.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=15568&group=alt.bbs.synchronet#15568

  copy link   Newsgroups: alt.bbs.synchronet
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!2.eu.feeder.erje.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!peer03.ams4!peer.am4.highwinds-media.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx11.iad.POSTED!not-for-mail
From: digital....@vert.synchro.net.remove-z90-this (Digital Man)
Subject: Loadable Modules and full/relative paths
Message-ID: <6228E9F3.46268.sync@vert.synchro.net>
X-Comment-To: Nightfox
Organization: Vertrauen
Newsgroups: alt.bbs.synchronet
In-Reply-To: <6228DE26.80402.dove_sync@digitaldistortionbbs.com>
References: <6228DE26.80402.dove_sync@digitaldistortionbbs.com>
X-FTN-PID: Synchronet 3.19c-Win32 master/304f72934 Mar 8 2022 MSC 1929
X-FTN-MSGID: 46268.sync@1:103/705 268ed4af
X-FTN-REPLY: 46262.sync@1:103/705 268ecf4f
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
X-Gateway: vert.synchro.net [Synchronet 3.19c-Win32 NewsLink 1.113]
Lines: 39
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Wed, 09 Mar 2022 17:55:00 UTC
Date: Wed, 9 Mar 2022 09:54:59 -0800
X-Received-Bytes: 2698
 by: Digital Man - Wed, 9 Mar 2022 17:54 UTC

To: Nightfox
Re: Loadable Modules and full/relative paths
By: Nightfox to Digital Man on Wed Mar 09 2022 09:04 am

> Re: Loadable Modules and full/relative paths
> By: Digital Man to Nightfox on Tue Mar 08 2022 07:32 pm
>
> >> For the Loadable Modules configuration in SCFG, it seems it doesn't
> >> accept full/relative paths, is that correct?
>
> DM> It's a mix. Have you looked at the online (F1) help? It clarifies which
> DM> loadable modules use full command-lines are which are just module
> DM> names.
>
> I've had a look. Does "full command-line" include a leading path, or does
> that just mean it can take command-line parameters?

Looks like a leading path (e.g. "../xtrn/whatever/mod.js") should work fine.

> >> One workaround I thought of was to create another, DDMsgReader.js
> >> which one could place in sbbs/mods, which would just build a string of
> >> arguments from argv and then call bbs.exec() to run the actual
> >> DDMsgReader. Or perhaps DDMsgReader.js could be moved into sbbs/exec,
> >> and its config files could be moved to sbbs/ctrl etc., but it seems
> >> cleaner to have all of its files together under /xtrn/DDMsgReader.
>
> DM> Yup, either of those seem like viable workarounds.
>
> I suppose that will suffice.

Cool, let me know if they don't.
--
digital man (rob)

Breaking Bad quote #35:
You ever smoke anything else, Wendy? Sausages don't count - ha ha - Hank
Norco, CA WX: 57.4°F, 40.0% humidity, 2 mph E wind, 0.00 inches rain/24hrs
--- Synchronet 3.19c-Win32 NewsLink 1.113
* Vertrauen - Riverside County, California - telnet://vert.synchro.net

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor