public inbox for nncp-devel@lists.stargrave.org
Atom feed
From: Sergey Matveev <stargrave@stargrave•org>
To: nncp-devel@lists.cypherpunks.su
Subject: Re: Config from stdin
Date: Sun, 28 Sep 2025 12:12:19 +0300 [thread overview]
Message-ID: <aNj78322SdD5Zs1t@stargrave.org> (raw)
In-Reply-To: <1758876614.75fo9ulbkn.astroid@laptop.none>
[-- Attachment #1: Type: text/plain, Size: 734 bytes --]
Greetings!
*** Emery Hemingway [2025-09-26 08:50]:
>A simple feature with a lot of potential value would be to support
>passing nncp configuration on FD0 when the path is "-".
Looks pretty useful indeed!
I have added it in the 8.13.0 release, but implementation differs.
Instead of passing "-" you pass "FD:x", where "x" is the desired opened
file you fed your configuration to. With "-" and forced stdin you won't
be able to use commands that already read from stdin. With FD:x you may
pass ordinary data to stdin and configuration through separate
independent file. "NNCPCFG=FD:5 nncp-cmd <data 5<cfg"
--
Sergey Matveev (http://www.stargrave.org/)
LibrePGP: 12AD 3268 9C66 0D42 6967 FD75 CB82 0563 2107 AD8A
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 265 bytes --]
prev parent reply other threads:[~2025-09-28 9:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-26 8:50 Config from stdin Emery Hemingway
2025-09-28 9:12 ` Sergey Matveev [this message]