🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #73185

[slrn] Macros & piping article to Perl script

#73185
From: Lee Webb
Date: Wed, 07 Mar 2001 21:31
23 lines
1602 bytes
I'm trying to use slrn's macros to pipe the body of an article an external
Perl script. This is easily accomplished with they '|' keystroke.
However, I get a brief flash of the screen and control is immediately returned
to slrn.

I tried using pipe_article, and sending it to 'more' hoping that (for some
reason) more would hold up the terminal until quitting, but this didn't work.

What I would like is either of:

1. (Ideally) How can I get it so that the output of my Perl script replaces the
original article text?
2. Failing that, slrn displays the output of the script and waits for a key to
return back to the standard slrn screen?


Pointers to docs (I've read the macro docs and looked through example macros, 
but to no avail), code snippets, or anything else you can think of are
appreciated.

Ta,
Lee.
Technical Details
Message-ID: <slrn9ada8i.25u.lee@colossus.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!supernews.google.com!sn-xit-03!supernews.com!freenix!isdnet!newsfeeds.belnet.be!news.belnet.be!btnet-peer1!btnet-feed5!btnet!mendelevium.btinternet.com!lee

Show Full Headers
Complete Article Headers
Message-ID: <slrn9ada8i.25u.lee@colossus.com>
Subject: [slrn] Macros & piping article to Perl script
Date: Wed, 07 Mar 2001 21:31:52 +0000
From: lee@colossus.com (Lee Webb)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!supernews.google.com!sn-xit-03!supernews.com!freenix!isdnet!newsfeeds.belnet.be!news.belnet.be!btnet-peer1!btnet-feed5!btnet!mendelevium.btinternet.com!lee
Newsgroups: news.software.readers
Organization: BT Internet
Lines: 22
Reply-To: YodaSays.ReplyToThis@ndSpammer.uBe
NNTP-Posting-Host: host62-7-113-125.btinternet.com
User-Agent: slrn/0.9.5.7 (UNIX)