view distributed/weighttp/start_weighttp.sh @ 19:c28f8d47c60d

Added
author Nobuyasu
date Wed, 29 Jan 2014 14:16:08 +0900
parents
children
line wrap: on
line source

#!/bin/sh

command=/home/mass/student/k128576/opt/bin/weighttp

requestNum=$1
concurrent=$2
threadNum=$3
schedule=$4
now=`expr $(date +%s)`
sleepTime=`expr schedule - now`
sleep(sleepTime)

$command -n $requestNum -c $concurrent -t $threadNum -k $url