🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #8946

Re: INN utility programs bug? No output when redirected...

#8946
From: Mike Pelletier
Date: Tue, 02 Jul 1996 00:00
39 lines
1954 bytes
In article <4r8vts$j1f@valhalla.comshare.com>,
	Mike Pelletier  <mikep@comshare.com> wrote:
>I posted this in the perl group, but it seems that this group might be
>better.
>
>I'm getting some really odd behaviour from convdate.  When I enter it on
>the command line, it works fine:
>
># /usr/sbin/convdate -n "28 Jun 1996 12:59:28 -0400"    
>835981168
>
>However, if I redirect it to a file or a pipe, I get no output:
>
># /usr/sbin/convdate -n "28 Jun 1996 12:59:28 -0400" | more
># 
>
>I can't discern anything in the source code that would cause this,
>anyone have any ideas?  Even a perl version of convdate would be
>helpful.

I've also discovered that this happens with grephistory too...

I'm running BSDI 2.01 on a Pentium system, in case you were
wondering.  This seems to be a larger issue than just convdate,
and it seems to have arisen after I reinstalled INN after adding the
new sharedactive patch and Mike Bird's streaming patches, and
modifiying a few path names to spread the Usenet system across
disks.

I've been working with UNIX for 10 years or so, and maybe I'm going
senile, but I can't think of any mechanism whereby a printf to a tty
would produce output but the same printf to a ">" or a "|" wouldn't.

Any ideas, anyone?

	-Mike Pelletier.

Technical Details
Message-ID: <4rbtor$mi7@valhalla.comshare.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <4r8vts$j1f@valhalla.comshare.com>

Show Full Headers
Complete Article Headers
Message-ID: <4rbtor$mi7@valhalla.comshare.com>
Subject: Re: INN utility programs bug? No output when redirected...
Date: Tue, 02 Jul 1996 00:00:00 +0000
From: Mike Pelletier <mikep@comshare.com>
References: <4r8vts$j1f@valhalla.comshare.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 163339646
Distribution: inet
Sender: mikep@valhalla.comshare.com
Organization: Comshare, Inc. - Ann Arbor, Michigan
Newsgroups: news.software.nntp