Scripted creation of a project in the Linux command line
Revision as of 08:52, 22 September 2016 by Daniel Castaño (talk | contribs)
It is possible to fully run Dynamo outside of Matlab AND the Dynamo standalone, as described here
Here we show how to create from scratch a project.
We then create a single script where we write all the commands that we would use interactively to create a project. Use any editor in your system to open a file, let's call it createProject.sh, and input the lines:
dynamo_vpr prtest dynamo_vpr_put prtest -data ttest/data dynamo_vpr_put prtest -template ttest/template.em dynamo_vpr_put prtest -table ttest/initial.tbl dynamo_vpr_put prtest -mask ttest/mask.em dynamo_vpr_put prtest -cmask ttest/mask.em dynamo_vpr_put prtest -fmask ttest/fmask.em dynamo_vpr_put prtest -smask ttest/mask_smoothing.em dynamo_vpr_put prtest -ite_r1 2 dynamo_vpr_put prtest -ca_r1 360 dynamo_vpr_put prtest -cs_r1 45 dynamo_vpr_put prtest -dim_r1 32 dynamo_vpr_put prtest -destination standalone dynamo_vpr_put prtest -cores 2 dynamo_vpr_check prtest dynamo_vpr_unfold prtest
Here, we are just indicating a minimum amount of input that you need to create a working project.
Now, you can run this script in a Linux shell (provided you have activated Dynamo in it) by
dynamo createProject.sh
After that, you can just execute the project