ReadExpressionsCommandLine

This example illustrates how to use a command line argument to set a FileParameter. In this model, ExpressionReader has a fileOrURL parameter that is set to $FOO. This model does not run because the initial default value of the top level parameter is "doesNotExist.ptd". However, if the model is run with $PTII/bin/ptexecute -FOO \\\"data2.ptd\\\" ReadExpressionCommandLine.xml the the value of FOO will be set to "data.ptd", which does exist and the model will run. The backslashes are necessary because the ptexecute shell script tends to strip off double quotes.

ReadExpressionsCommandLine is available in two formats:

See Web Start Help for details.