🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #156027

Re: [SLRN] autosig pipe setup?

#156027
From: Ben Shimmin
Date: Thu, 23 Sep 2004 19:16
56 lines
2944 bytes
Werner Kurator <werner@searching-for.peace>:
> Ben Shimmin:
>> Werner Kurator <werner@searching-for.peace>:
>>
>> [...]
>>
>>> the autosig-daemon (autosigd) returned a error autosig not found, 
>>
>> You installed a daemon just for random .signatures?  Sounds like overkill
>> to me.  The following Perl serves me just fine:

perl -ne 'BEGIN{$/=""}chop,$p=$_ if rand++$n<1;END{print$p}' sigs >.signature

> Thanks for your reply :-)

No problem.

> So now I need to learn _Perlscripting_  to implement this.

Not at all.  The above should `just work'.

> I _really_ appreciate you guys to take your time who gave _working_ 
> solutions, my problem is that I know _absolute_ nothing about 
> how to write scrips in Linux. 
>
> So again with the above line I hit a wall, do I put it into the
> ~/.slrnrc or in a separate file and etc.

Save the above Perl in a separate file called, for example, `sigmaker', in
your home directory.  Make sure it's executable -- run it (by typing
`./sigmaker' from your bash prompt) to test that it works, and check that it
makes a nice different .signature file each time it's run (by doing `cat
.signature').  Remember that your file with your signature quotes (called
`sigs' if you use the above) needs to have a blank line between each
individual quote, like this:

`This is a funny quote.'

`This is another funny quote.'

`This is a third funny quote.'

And so on.  That's the hard bit.  Then all you need to do is to put

  set editor_command "/home/werner/sigmaker; emacs"

in your .slrnrc (`emacs' can, of course, be `vi', or whatever your preferred
editor is).

That should work perfectly.

b.

-- 
Ben Shimmin (bas@bas.me.uk)                            <URL:http://bas.me.uk/>
                                                   <URL:http://gpg.bas.me.uk/>
Technical Details
Message-ID: <slrn.2004-09-23.19-00-06@cruel-samoan.bas.me.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!fu-berlin.de!uni-berlin.de!not-for-mail
References: <slrncl2o9d.2oi.werner@not_known_to.me> <slrncl4ch8.3r0.wcitoan@wcitoan-via.supernews.com> <slrncl4r1o.19n.werner@not_known_to.me> <slrncl5cdq.36k.wcitoan@wcitoan-via.supernews.com> <slrncl5hfp.1sn.werner@not_known_to.me> <slrn.2004-09-23.17-06-37@cruel-samoan.bas.me.uk> <slrncl64vd.3cr.werner@not_known_to.me>

Show Full Headers
Complete Article Headers
Message-ID: <slrn.2004-09-23.19-00-06@cruel-samoan.bas.me.uk>
Subject: Re: [SLRN] autosig pipe setup?
Date: Thu, 23 Sep 2004 19:16:09 +0000
From: Ben Shimmin <bas@otlair.bas.me.uk>
References: <slrncl2o9d.2oi.werner@not_known_to.me> <slrncl4ch8.3r0.wcitoan@wcitoan-via.supernews.com> <slrncl4r1o.19n.werner@not_known_to.me> <slrncl5cdq.36k.wcitoan@wcitoan-via.supernews.com> <slrncl5hfp.1sn.werner@not_known_to.me> <slrn.2004-09-23.17-06-37@cruel-samoan.bas.me.uk> <slrncl64vd.3cr.werner@not_known_to.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!fu-berlin.de!uni-berlin.de!not-for-mail
Newsgroups: news.software.readers
Organization: criminal mastermind
Lines: 56
Reply-To: bas@rialto.bas.me.uk
X-Trace: news.uni-berlin.de q/Igs7uQaH+s1HsGJkPQfgH+WjZd2ejd+p8x9VqrXap/h7x1bt
User-Agent: slrn/0.9.8.0 (Linux)