S
Sandrine CHEN
Thank you to tell me why:
I have one program like following, it could display results on HTML
page on one machine, but not on another which has the same kernel of
2.4.18-3, Redhat Linux, I star to wonder is it that i haven't written
the program in a way more popular, or there is other point that i need
to check or take care?
What's more, on the same machine(that result couldn't display), if i
run the script manually under command line, it couldn't display
results.
Why!
____________________________________________
#!/usr/bin/perl -w
print "Content-type: text/html\n\n";
print "<html>\n";
print "<test of result>";
print "<body>";
open (RES, "/usr/bin/top -bs -n 1 |");
while (<RES>) {
print $_,"<br>";
}
close RES;
print "</body>";
____________________________________________
thank u very much...
print "</html>";
I have one program like following, it could display results on HTML
page on one machine, but not on another which has the same kernel of
2.4.18-3, Redhat Linux, I star to wonder is it that i haven't written
the program in a way more popular, or there is other point that i need
to check or take care?
What's more, on the same machine(that result couldn't display), if i
run the script manually under command line, it couldn't display
results.
____________________________________________
#!/usr/bin/perl -w
print "Content-type: text/html\n\n";
print "<html>\n";
print "<test of result>";
print "<body>";
open (RES, "/usr/bin/top -bs -n 1 |");
while (<RES>) {
print $_,"<br>";
}
close RES;
print "</body>";
____________________________________________
thank u very much...
print "</html>";