Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

You are able to pass scripts as an input to CleverAnalytics Shell.

The script may contain command sequences, equal to those you put in the through the standard input.

The script file must be located in the working directory of the Shell and it must be a text file. This name of this text file is passed to Shell as a command line argument  --cmdfile.

Example

We have a following directory structure:

...

Code Block
themeMidnight
login --server https://secure.cleveranalytics.com
openProject --project abcdefgh12345678
loadCsv --file /home/user/CAN/orders.csv --dataset orders --mode incremental
loadCsv --file /home/user/CAN/customers.csv --dataset customers --mode incremental
dumpCsv --dataset stores
exit

...