I have some YCSB Data load scripts which runs in background
data_load.sh:
nohup ycsb load couchbase2 -s -P workloada -p couchbase.bucket=poc -threads 30 .. > load1_output.txt &
nohup ycsb load couchbase2 -s -P workloada -p couchbase.bucket=poc -threads 30 .. > load2_output.txt &
nohup ycsb load couchbase2 -s -P workloada -p couchbase.bucket=poc -threads 30 .. > load3_output.txt &
And Some YCSB Run Scripts too which looks like this:
Read_test.sh:
nohup ycsb run couchbase2 -s -P workloadc -p couchbase.bucket=poc -threads 30 .. > read1_output.txt &
nohup ycsb run couchbase2 -s -P workloadc -p couchbase.bucket=poc -threads 30 .. > read2_output.txt &
nohup ycsb run couchbase2 -s -P workloadc -p couchbase.bucket=poc -threads 30 .. > read3_output.txt &
If I run them individually, they would run in background and in parallel.
But how to automate this or write a script which will call both this scripts one after another and will wait for 1st one to finish before going to the next script ?
Thanks in Advance.