Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Jul 1998 23:56:04 -0500 (CDT)
From:      laszlo vagner <vagner@mutsgo.kf7nn.com>
To:        questions@FreeBSD.ORG
Subject:   off topic
Message-ID:  <199807160456.XAA24071@mutsgo.kf7nn.com>

next in thread | raw e-mail | index | archive | help
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.

here is the messed up output

ast pid: 24061; load averages: 0.00, 0.00, 0.00 23:51:11 25 processes: 1 
running, 24 sleeping Mem: 11M Active, 3452K Inact, 7508K Wired, 3952K Cache,
3503K Buf, 4108K Free Swap: 200M Total, 64K Used, 200M Free PID USERNAME PRI 
NICE SIZE RES STATE TIME WCPU CPU COMMAND 177
root 18 0 488K 692K pause 0:23 0.00% 0.00% httpd 128 root 18 0 368K 468K 
pause 0:09 0.00% 0.00% cron 371 root 2 0 464K 668K select 0:05 0.00%
0.00% nmbd 94 root 2 0 204K 468K select 0:03 0.00% 0.00% syslogd 22809 root 2 
0 860K 1128K select 0:02 0.00% 0.00% smbd 21801 root 2 0 212K
624K select 0:01 0.00% 0.00% telnetd 27 root 18 0 204K 72K pause 0:00 0.00% 
0.00% adjkerntz 21802 vagner 10 0 488K 212K wait 0:00 0.00% 0.00% sh
24060 nobody 10 0 480K 204K wait 0:00 0.00% 0.00% sh 1 root 10 0 484K 188K 
wait 0:00 0.00% 0.00% init 204 root 3 0 180K 456K ttyin 0:00 0.00%
0.00% getty 202 root 3 0 180K 456K ttyin 0:00 0.00% 0.00% getty 203 root 3 0 
180K 456K ttyin 0:00 0.00% 0.00% getty 21991 root 3 0 460K 308K ttyin
0:00 0.00% 0.00% csh 19286 nobody 2 0 572K 860K accept 0:00 0.00% 0.00% httpd 
23215 nobody 2 0 576K 852K select 0:00 0.00% 0.00% httpd 23228
nobody 2 0 560K 852K select 0:00 0.00% 0.00% httpd 23639 nobody 2 0 548K 852K 
select 0:00 0.00% 0.00% httpd 

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?199807160456.XAA24071>