🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #44692

Re: SLRN, can hooks be useed?

#44692
From: Gerfried Fuchs
Date: Fri, 20 Nov 1998 00:00
44 lines
2680 bytes
On 18 Nov 1998, John E. Davis <davis@space.mit.edu> wrote:
> 
> I think that the most elegant solution is to make .signature a named
> pipe.  Then create a signature process, e.g., a modification of
> getsig, that waits for something to open .signature, at which point
> the process would write something to the pipe and then close it.  For
> example, consider the following `silly' program (silly.c follows below).
> (Note also that this will not work across NFS, which does not
> implement named pipes).
---- snip ----

 It's funny that you said that  :)  I am currently working on such a program.
It works quite fine for me already and I planed to announce it quite soon - but
now you came along and I have to hurry a bit ;)
 Have a look at http://alfie.ml.org/agp/sigd/ which is exactly that what you
wrote about here - besides it takes all files out of a special directory and
put's them randomly (just like fortune - what was originally asked for) into
that pipe.
 It is not very well documented yet - I'm working on that. And it will get the
features stated on the page; and more, if you ask for ;)

 It's quite stable - although it's no 'real' daemon yet, just a called program
- which exits when you end the shell that it's started from  :(  But if you put
the following 2 lines in your .login or .bash_login file, everything should be
quite fine:
killall sigd
exec sigd &
 For sure you have to put sigd in a directory included in $PATH for that
working :)

 Just look in the sigd.c file for some changes (maybe you want to host your
signatures in another directory), notice that files with a . at their start
will be ignored! And I don't know what it does with 'special' files in that
directory - just avoid them.
 Then type make and copy the resulting sigd file e.g. in your ~/bin directory
(or even in /usr/local/bin - I would be pleased ;).

 I hope, this pleases you  :)

Alfie aka Gerfried Fuchs
-- 
The best defense against logic is ignorance.

Technical Details
Message-ID: <slrn75apbh.a5r.alfie@skater.htu.tuwien.ac.at>
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: <slrn755pk0.2kf.toby@g0ucu.ampr.org> <slrn755vvg.dh.c928400@urdybet.bergsoe.dtu.dk> <slrn756666.5cl.davis@aluche.mit.edu>

Show Full Headers
Complete Article Headers
Message-ID: <slrn75apbh.a5r.alfie@skater.htu.tuwien.ac.at>
Subject: Re: SLRN, can hooks be useed?
Date: Fri, 20 Nov 1998 00:00:00 +0000
From: alfie@innocent.com (Gerfried Fuchs)
References: <slrn755pk0.2kf.toby@g0ucu.ampr.org> <slrn755vvg.dh.c928400@urdybet.bergsoe.dtu.dk> <slrn756666.5cl.davis@aluche.mit.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
X-Deja-AN: 413857829
Organization: Skate or die
User-Agent: slrn/0.9.5.4 (UNIX)
Newsgroups: news.software.readers