Date: Thu, 16 Jul 1998 20:01:52 -0500 (CDT) From: laszlo vagner <vagner@mutsgo.kf7nn.com> To: jal@ThirdAge.com (Jamie Lawrence) Cc: questions@FreeBSD.ORG Subject: Re: off topic Message-ID: <199807170101.UAA03255@mutsgo.kf7nn.com> In-Reply-To: <3.0.5.32.19980716150637.01c47ce0@204.74.82.151> from Jamie Lawrence at "Jul 16, 98 03:06:37 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
The <pre> 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 > > <html><head>top</head><body><pre> > > your output here, then at the bottom: > > > </pre></body></html> > > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199807170101.UAA03255>