🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: ch.comp.os.linux
Article #22299

Re: Problem mit lpr un FF

#22299
From: Marc SCHAEFER
Date: Thu, 20 May 1999 00:00
34 lines
1993 bytes
Sven Kirmess <Sven.Kirmess@gmx.net> wrote:
> Geht das immer, das kleiner als um eine Datei einzulesen? Wird das von Bash
> geliefert oder muss das Tool das unterst�tzen?

like the shell wildcards, is handled by bash

Homework: Try ``echo *'' and try to understand why.

The only case where < would not work is if the called software does
seek()s. If you use |, there is the added restriction that any
program assuming he can do greater than PIPE_SIZE I/O while using the
system read()/write() will not work. PIPE_SIZE is 4096 bytes.
stdio handles that transparently.

> > or cat Filename | cat | cat | cat | cat | lpr -Phpljet4l-a4-raw :)

> Diese Version gef�llt mir am besten... :-)

But on Linux, it's quite CPU intensive. Some UNIX systems implements
pipes through memory mapping. For example, on Solaris,

   cat < /dev/null | cat > /dev/zero

creates two cat processes, but then no byte are exchanged, just
MMU tables are shuffled around.

> Ich hab aber eine Mail von p.sonderegger erhalten; In der Datei
> /etc/apsfilterrc unter SuSE musste ich nur print_raw_supress_formfeed="yes"
> entauskommentieren (komisches Wort...), falls es jemand interessiert...

Ah, ok, so the problem was indeed apsfilter. You see, you can even
teach me things :)

[ on my system, raw are cat :) ]
Technical Details
Message-ID: <7i09t5$t0f$1@vulcan.alphanet.ch>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <37418BB6.F8D87553@gmx.net> <7htm2i$tl0$1@vulcan.alphanet.ch> <37433C86.FC93AF36@gmx.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f4b73,47ce97f3d870d46c
X-Google-Attributes: gidf4b73,public
From: Marc SCHAEFER <schaefer@alphanet.ch>
Subject: Re: Problem mit lpr un FF
Date: 1999/05/20
Message-ID: <7i09t5$t0f$1@vulcan.alphanet.ch>
X-Deja-AN: 479946937
Content-Transfer-Encoding: 8bit
References: <37418BB6.F8D87553@gmx.net> <7htm2i$tl0$1@vulcan.alphanet.ch> <37433C86.FC93AF36@gmx.net>
Supersedes: <7i0925$snr$1@vulcan.alphanet.ch>
Content-Type: text/plain; charset=ISO-8859-1
Organization: ALPHANET NF -- Not for profit telecom research
Mime-Version: 1.0
Reply-To: Marc SCHAEFER <schaefer@alphanet.ch>
Newsgroups: ch.comp.os.linux