From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <86ef50171686ab117cd7bf95c4131fbf@quanstro.net> To: 9fans@cse.psu.edu Subject: Re: [9fans] newbie rc question From: erik quanstrom Date: Mon, 15 Oct 2007 13:22:03 -0400 In-Reply-To: <132f7ab76fee59596efcab59956f6c36@csplan9.rit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: d0b86ffe-ead2-11e9-9d60-3106f5b1d025 > page says 'converting from troff to postscript' but then never > actually displays anything. I'm sure there's something basic > I'm forgetting here--can somebody help me figure out what's > wrong? the file descriptor is never closed, thus page never stops to render what it's got. what you want is the same thing with the cmd rolled inside. something like #!/bin/rc if(! ~ $#* 2){ echo usage: w file cmd >[1=2]; exit usage } s='' while(){ n=`{sum $1| sed 's/ .*//g'} if(! ~ $s $n){ s=$n $2 < $1 } sleep 1 }