🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #918

Re: named pipes and .plan

#918
From: Paul John Falstad
Date: Thu, 27 Sep 1990 22:13
31 lines
1492 bytes
In article <5932@ge-dab.GE.COM> coleman@sunny.DAB.GE.COM (Richard Coleman) writes:
>Could someone send me or post a simple example
>of sending program output to .plan when someone uses
>the finger command.  It would be greatly appreciated.

Somebody just posted an 100+ line program that does much the same thing as
this (unless I'm missing something really obvious):

nowhere% cd
nowhere% /usr/etc/mknod .plan p
nowhere% sh
$ while true; do (
> echo This is my .plan.
> /usr/games/fortune         # put whatever you want inside the ( )'s
> ) >.plan; sleep 1; done &
12345
$ exit
nowhere% cat .plan
This is my .plan.
Stupid, n.:
	Losing $25 on the game and $25 on the instant replay.

Also try this inside the plan:

echo Stop fingering me, `w|grep finger|awk '{print $1}'`

Now what am I missing??? Why does this have to be so complicated????

Paul Falstad, pfalstad@phoenix.princeton.edu PLink:HYPNOS GEnie:P.FALSTAD
I'd like to answer this question, if I may, in two ways.  Firstly in
my normal voice, and then in a kind of silly high-pitched whine.
Technical Details
Message-ID: <2884@idunno.Princeton.EDU>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!wuarchive!udel!princeton!phoenix!pfalstad
References: <5932@ge-dab.GE.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!wuarchive!udel!princeton!phoenix!pfalstad
From: pfalstad@phoenix.Princeton.EDU (Paul John Falstad)
Newsgroups: comp.unix.programmer
Subject: Re: named pipes and .plan
Message-ID: <2884@idunno.Princeton.EDU>
Date: 27 Sep 90 22:13:36 GMT
References: <5932@ge-dab.GE.COM>
Sender: news@idunno.Princeton.EDU
Organization: Princeton University, Princeton, New Jersey
Lines: 31