🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #43286

Re: slrn: random sig

#43286
From: Paul A Sand
Date: Fri, 18 Sep 1998 00:00
32 lines
1539 bytes
>Xenon <REPLYTO@is.set.> informed
>news.software.readers with the following:
>>i have a random sig script which i want slrn to execute when i post 
>>articles. [...]

I hoked up a possible solution yesterday, and it's my first attempt
at playing with slrn, so be kind and careful:

1) I have this in test.sl:

define post_hook ()
{
    () = system ("/home/gravity/pas/bin/sigmaker /home/gravity/pas/sigs/news > /
tmp/.signature");
    set_string_variable ("signature", "/tmp/.signature");
}

[Clearly you'd want to substitute your own script and args for mine]

2) I have in my .slrnrc file:

	interpret "test.sl"

Seems to work OK. 

-- 
-- Paul A. Sand                 | Choose mnemonic identifiers. If you can't
-- University of New Hampshire  | remember what mnemonic means, you've got
-- pas@unh.edu                  | a problem.
-- http://pubpages.unh.edu/~pas |     (Larry Wall, perlstyle man page)

Technical Details
Message-ID: <6ttige$46l@mozz.unh.edu>
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!not-for-mail
References: <slrn7003go.7je.REPLYTO@angband.org> <slrn704efk.v9b.hezu@tuuri.ling.helsinki.fi>

Show Full Headers
Complete Article Headers
Message-ID: <6ttige$46l@mozz.unh.edu>
Subject: Re: slrn: random sig
Date: Fri, 18 Sep 1998 00:00:00 +0000
From: Paul A Sand <pas@unh.edu>
References: <slrn7003go.7je.REPLYTO@angband.org> <slrn704efk.v9b.hezu@tuuri.ling.helsinki.fi>
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!not-for-mail
X-Deja-AN: 392383108
Organization: University of New Hampshire
Reply-To: pas@unh.edu
Newsgroups: news.software.readers