3
# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
5
# This program is free software; you can redistribute it and/or modify
6
# it under the terms of the GNU General Public License as published by
7
# the Free Software Foundation; version 2 of the License.
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
# GNU General Public License for more details.
14
# You should have received a copy of the GNU General Public License
15
# along with this program; if not, write to the Free Software
16
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18
# usage: no args/options
21
echo "" >> out.txt 2>&1
22
hwprefs -v cpu_count >> out.txt 2>&1
23
echo "" >> out.txt 2>&1
24
./restart_cluster.sh >> out.txt 2>&1
25
echo "" >> out.txt 2>&1
26
./load_shema.sh >> out.txt 2>&1
27
iostat 5 > iostat5.txt 2>&1 &
28
#vmstat 5 > vmstat5.txt 2>&1 &
30
echo "" >> out.txt 2>&1
31
( cd ../tws/tws_java/ ; ant run ) >> out.txt 2>&1
33
mv -v [a-z]*.txt results/xxx
34
mv -v ../tws/tws_java/log*.txt results/xxx
35
cp -v ../tws/tws_java/nbproject/configs/*.properties results/xxx
36
cp -v ../tws/tws_java/nbproject/private/*.properties results/xxx
37
cp -v ../tws/*.properties results/xxx
38
cp -v ../config.ini results/xxx
39
cp -v ../my.cnf results/xxx
40
mv -v results/xxx results/xxx_tws_java