🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
4 messages
4 total messages Started by Ron Jarrell Mon, 17 Aug 1998 00:00
pipe problems with cnfs and inn-1998-08-11_04-00?
#30530
Author: Ron Jarrell
Date: Mon, 17 Aug 1998 00:00
24 lines
1979 bytes
I've been running the inn-1998-08-11_04-00 snapshot of 2.1 for
a couple of days now full time, and life was good.  Today I basically
spent the night going through the "convert to cnfs" hell on my sol
2.5.1 sparc (I feel bitten to death by gotchas), but it's working
fantastically; I've gotten peaks after processing the backlog
of 4,000-6,000 arts MORE a minute than I've ever seen.

However, suddenly *all* my "Tp" feeds have died...  Before CNFS I was
getting the entire article piped down each Tp (almost all of which
get piped into news2mail).  Now, suddenly, with CNFS turned on, I'm
not getting diddly squat piped in.  I threw up a four line perl script
to test it, and nothing is coming through stdin.  I've tried some
combinations of adding Wf or Wm to the Tp (it was a naked Tp before),
but I'm still getting NOTHING...  Nothing in the documentation implied
that CNFS breaks pipe feeds, or I wouldn't have burnt my bridge behind me
before writing software to handles those dozen or so feeds.

Has anyone else run into this?  What am I missing here?  I could rewrite
those into channels, I suppose, but there's absolutely no reason I can
find for them to have suddenly died like that.



Re: pipe problems with cnfs and inn-1998-08-11_04-00?
#30548
Author: Miquel van Smoorenburg
Date: Mon, 17 Aug 1998 00:00
25 lines
1726 bytes
In article <6r82au$sb5$1@solaris.cc.vt.edu>,
Ron Jarrell  <jarrell@solaris.cc.vt.edu> wrote:
>Ron Jarrell <jarrell@solaris.cc.vt.edu> wrote:
>> but I'm still getting NOTHING...  Nothing in the documentation implied
>> that CNFS breaks pipe feeds, or I wouldn't have burnt my bridge behind me
>> before writing software to handles those dozen or so feeds.
>
>Ok, so maybe it did, subtly.  I did read the man pages.  Twice.
>I just didn't catch the subtle hint.. The man pages (which, BTW, are
>becoming radically different from the comments in the individual
>files) need bigger mentions of "storage api radically changes
>this behavior" items...

I think you are confusing channel feeds and program feeds. The piece
of the manpage you quoted is about a program feed.

On my system channel feeds still work as expected. They have to or
overchan wouldn't run .. So alas I can't help you with your original problem.

Mike.
-- 
 Miquel van Smoorenburg | Our vision is to speed up time,
    miquels@cistron.nl  |   eventually eliminating it.     <*>

Re: pipe problems with cnfs and inn-1998-08-11_04-00?
#30550
Author: Ron Jarrell
Date: Mon, 17 Aug 1998 00:00
34 lines
2486 bytes
Ron Jarrell <jarrell@solaris.cc.vt.edu> wrote:
> but I'm still getting NOTHING...  Nothing in the documentation implied
> that CNFS breaks pipe feeds, or I wouldn't have burnt my bridge behind me
> before writing software to handles those dozen or so feeds.


Ok, so maybe it did, subtly.  I did read the man pages.  Twice.
I just didn't catch the subtle hint.. The man pages (which, BTW, are
becoming radically different from the comments in the individual
files) need bigger mentions of "storage api radically changes
this behavior" items...

From the newsfeeds man page:

A site fed by a program has  a  process  spawned  for  every
     article  that  the site receives.  The param field must be a
     sprintf(3) format string that may have a single  %s  parame-
     ter, which will be given a pathname for the article relative
     to the news spool directory or a token.  If the name is  not
     a token, the full path name may be obtained by prefixing the
     %s in the param field by the news  spool  directory  prefix.
     Standard  input will be set to the article, unless the arti-
     cle name is a token.  Standard output and error will be  set
     to  the error log ( <pathlogininn.conf>/errlog.  The process
     will run with the user and  group  ID  of  the  <pathrun  in
     inn.conf>  directory.   Innd  will  try  to avoid spawning a
     shell if the command  has  no  shell  meta-characters;  this
     feature can be defeated by appending a semi-colon to the end
     of the command.  The full pathname of the program to be  run
     must  be  specified;  for  security, PATH environment is not
     searched.


Re: pipe problems with cnfs and inn-1998-08-11_04-00?
#30592
Author: Ron Jarrell
Date: Tue, 18 Aug 1998 00:00
14 lines
1421 bytes
Miquel van Smoorenburg <miquels@cistron.nl> wrote:
> I think you are confusing channel feeds and program feeds. The piece
> of the manpage you quoted is about a program feed.

Actually, no, I wasn't...  What I was using was program feeds.
Luckily, after a couple of hours of experimenting, I figured out it
was easy enough to write a wrapper script which takes a new argument,
a %s in the newsfeeds file, which provides the token, then run
a "sm $5 | original script", which will cheerfully tide me over until
I do a redesign...



Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads