|
|||||||||||||||||||||||||||
hejsa
jeg sad lige og testede lidt med at få putput fra /usr/bin/top på en
hjemmeside via et perlscript!
her er hvad jeg har lavet!! Mit problem er at det ikke bliver vist på
hjemmesiden, men det bliver vist når man kører det med "perl test.cgi"
#!/usr/bin/perl -w
print "Content-type: text/html\n\n";
print "<html><head></head><body>";
print "<pre>";
open(TOP, "/usr/bin/top -bn 1 |") || die "error";
while (<TOP>) {
print $_;
}
close(TOP) || die "cant close";
print "</pre></body></html>";
--
-
MVH
Kim schulz
========================================================================
| ADICT Kode Slave - www.adict.net |
| Dansk Linux Link Database - www.LinuXia.dk |
========================================================================
{ LinuxForum 2000 * 4. marts 2000 * http://LinuxForum.dk }
================================================================
Sleep is just a cheap substitute for coffee
|
||||||||||||||
|
||||||||||||||