cp -r /home/rstudio/JavaSTICS-1.5.1-STICS-10.0.0 . &&
unzip -qq $4 -d TMP &&
export WSname=$(ls TMP) &&
mv TMP/* JavaSTICS-1.5.1-STICS-10.0.0/WS &&
cp $5 JavaSTICS-1.5.1-STICS-10.0.0/WS/successionPlan.csv &&
cd JavaSTICS-1.5.1-STICS-10.0.0 &&
Rscript --verbose $3/redelacSticsSimulator.R $1 $2 &&
mv WS $WSname &&
zip -qq -r $WSname $WSname &&
cp $WSname.zip $6 &&
cp results.RData $7
             
