Update NEWS files for next release
[ACE_TAO.git] / ACE / apps / JAWS / clients / WebSTONE / bin / write-testbed.pl
blob2935b9f56fe2d66c439bf2962519219b93715f74
1 #!/pkg/gnu/bin//perl5
3 # write new values from form to $wd/conf/testbed, and run WebStone
6 push(@INC, "$wd/bin");
7 require('WebStone-common.pl');
9 html_begin("Current Configuration");
11 &show_model();
12 &write_data();
14 print CLIENT <<EOF
15 <HR>
16 <FORM METHOD="POST" ACTION="$wd/bin/runbench.pl">
17 <P><INPUT TYPE="SUBMIT" VALUE="Run WebStone">
18 </FORM>
19 </DL>
21 EOF
24 html_end();
26 # end main
28 sub write_data {
29 rename("$wd/conf/testbed", "$wd/conf/testbed.bak") ||
30 die "rename testbed: $!\n";
31 open(TESTBED, ">>$wd/conf/testbed") || die "open testbed: $!\n";
33 print CLIENT "<PRE>";
35 foreach $key (@keylist) {
36 $$key =~ s/\+/ /g;
37 $newvalue = "$key=\"$$key\"\n";
38 print CLIENT $newvalue;
39 print TESTBED $newvalue;
42 print CLIENT "</PRE>";
44 close(TESTBED);
47 # end