From owner-freebsd-questions Thu Jul 16 18:02:34 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA28233 for freebsd-questions-outgoing; Thu, 16 Jul 1998 18:02:34 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from mutsgo.kf7nn.com (mutsgo.kf7nn.com [204.251.27.213]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA28228 for ; Thu, 16 Jul 1998 18:02:28 -0700 (PDT) (envelope-from vagner@mutsgo.kf7nn.com) Received: (from vagner@localhost) by mutsgo.kf7nn.com (8.8.8/8.8.8) id UAA03255; Thu, 16 Jul 1998 20:01:53 -0500 (CDT) (envelope-from vagner) From: laszlo vagner Message-Id: <199807170101.UAA03255@mutsgo.kf7nn.com> Subject: Re: off topic In-Reply-To: <3.0.5.32.19980716150637.01c47ce0@204.74.82.151> from Jamie Lawrence at "Jul 16, 98 03:06:37 pm" To: jal@ThirdAge.com (Jamie Lawrence) Date: Thu, 16 Jul 1998 20:01:52 -0500 (CDT) Cc: questions@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG The
 tag was what fixed it!

thanks people i appreciate it.

you people are gods!

George

> At 11:56 PM 7/15/98 -0500, laszlo vagner wrote:
> >if i run top and send it to a file like this
> >top > file.txt  i can look at it perfectly 
> >in a web browser but if i run it as a cgi
> >script the output looks all bunched together
> >like it is missing carriage returns.
> >
> >how can i format it so it displays in a cgi 
> >script.
> 
> Return it as HTML. At the top:
> 
> Content-type: text/html
> 
> top
> 
> your output here, then at the bottom: 
> 
> 
> 
> > Make very sure you follow the content-type line with > two newlines - that's part of the spec and a frequently > made mistake. > > -j > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message