Article View: news.software.readers
Article #70744Re: slrn - shell command in custom_headers
From: Renaud Colinet
Date: Thu, 18 Jan 2001 18:01
Date: Thu, 18 Jan 2001 18:01
16 lines
1764 bytes
1764 bytes
Le 18 Jan 2001 16:50:16 GMT, Neuromancer a ๏ฟฝcrit : >I searched everywhere with no luck. What I need to do is have slrn drop >the output of a shell command into a custom header. For example, uname -a. > You'd need to use post-hooks and followup-hooks for that, in order to generate the custom_headers and followup_custom_headers strings. See the script xcomments.sl (it should be in your slrn/macros directory) on how to do that. The tricky part is to get the output of your shell command into a string. S-lang seems to have a built-in 'uname', so that shouldn't be so hard, but I'm not sure for other commands. HTH -- Renaud
Technical Details
Message-ID:
<JbG96.309$m%.552009@nnrp2.proxad.net>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-02!supernews.com!news.gv.tsc.tdk.com!hub.org!hub.org!hermes.visi.com!news-out.visi.com!codeine.org!grolier!proxad.net!feeder2.proxad.net!nnrp2.proxad.net.POSTED!not-for-mailReferences:
<slrn96e7m7.sk.neuromancer@HAL-9000.net>Show Full Headers
Complete Article Headers
Message-ID: <JbG96.309$m%.552009@nnrp2.proxad.net> Subject: Re: slrn - shell command in custom_headers Date: Thu, 18 Jan 2001 18:01:13 GMT From: rcolinet@free.invalid (Renaud Colinet) References: <slrn96e7m7.sk.neuromancer@HAL-9000.net> 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-02!supernews.com!news.gv.tsc.tdk.com!hub.org!hub.org!hermes.visi.com!news-out.visi.com!codeine.org!grolier!proxad.net!feeder2.proxad.net!nnrp2.proxad.net.POSTED!not-for-mail Newsgroups: news.software.readers Reply-To: rcolinet@free.fr Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit User-Agent: slrn/0.9.6.3 (Win32) Lines: 15 NNTP-Posting-Host: 57.67.13.235 X-Complaints-To: abuse@proxad.net X-Trace: nnrp2.proxad.net 979840873 57.67.13.235 (Thu, 18 Jan 2001 19:01:13 CET) NNTP-Posting-Date: Thu, 18 Jan 2001 19:01:13 CET Organization: Guest of ProXad - France