3.4 Customization of Shell Scripts

Three shell scripts need customization to ensure that they can perform daily tests successfully on time. Here are the three shell scripts you need to modify:

Please pay attention to the choice of compiler, compiler options and paths. Different operating systems may use different command line options for the same command.

In HPF, all shell script cron jobs should finish within a day (i.e., before 11:59pm) so that analysis and report PHP scripts can run on the next day in sync. The PHP scripts look for the data that have a time-stamp of specific range in MySQL DB. Although you can submit a cron job that starts early to ensure the job to be completed on time, it's also possible to save some time by adjusting the INTERVAL variable within the shell script.

Please look for the lines that say:

# This script will run tests 3 times to record the best performance.
# Please set the interval in seconds between trials.
# 600 seconds = 10 minutes
INTERVAL="600"
and make it shorter if necessary.

Finally, it is not recommended to modify the lines below the following comments:

###############################################################################
# Please DO NOT edit lines below.
###############################################################################

It is also a very good idea to test the customized script at the command prompt before submitting the cron job.