diff options
Diffstat (limited to 'ACE/apps/JAWS/clients/WebSTONE/bin/genfiles')
-rwxr-xr-x | ACE/apps/JAWS/clients/WebSTONE/bin/genfiles | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/ACE/apps/JAWS/clients/WebSTONE/bin/genfiles b/ACE/apps/JAWS/clients/WebSTONE/bin/genfiles new file mode 100755 index 00000000000..90f8e4a4696 --- /dev/null +++ b/ACE/apps/JAWS/clients/WebSTONE/bin/genfiles @@ -0,0 +1,41 @@ +#! /bin/sh +# $Id$ + +# get configuration +. $WEBSTONEROOT/conf/testbed + +cat $WEBSTONEROOT/conf/fileset | +nawk ' +($1 ~ /^[0-9][0-9]*[kK][bB]*$/) { + sub(/[kK][bB]*/, "", $1); + cmd = "$WEBSTONEROOT/bin/genrand " $1*1024 " " $2 + print cmd; + system(cmd); + next +} + +($1 ~ /^[0-9][0-9]*[mM][bB]*$/) { + sub(/[kK][bB]*/, "", $1); + cmd = "$WEBSTONEROOT/bin/genrand " $1*1024*1024 " " $2 + print cmd; + system(cmd); + next +} + +($1 ~ /^[0-9][0-9]*$/) { + sub(/[kK][bB]*/, "", $1); + cmd = "$WEBSTONEROOT/bin/genrand " $1 " " $2 + print cmd; + system(cmd); + next +} ' $* + +# copy files +files=`cat $WEBSTONEROOT/conf/fileset | cut -f2 -d' '` +for f in $files +do + $RCP $f $SERVER:$WEBDOCDIR + rm -f $f +done + +#end |