orcli/help/run.md

57 lines
1.3 KiB
Markdown
Raw Normal View History

2023-10-23 00:09:14 +02:00
# orcli run
```
orcli run - run tmp OpenRefine workspace and execute shell script(s)
Usage:
orcli run [FILE...] [OPTIONS]
orcli run --help | -h
Options:
--memory RAM
maximum RAM for OpenRefine java heap space
Default: 2048M
--port PORT
PORT on which OpenRefine should listen
Default: 3333
--interactive
do not exit on error and keep bash shell open
--quiet, -q
suppress log output, print errors only
--help, -h
Show this help
Arguments:
FILE...
Path to one or more files or URLs. When FILE is -, read standard input.
Default: -
Examples:
orcli run --interactive
orcli run << EOF
2024-12-19 23:17:15 +01:00
orcli import csv "https://git.io/fj5hF" --projectName "duplicates"
orcli transform "duplicates" "https://git.io/fj5ju"
orcli export tsv "duplicates"
EOF
2023-10-23 00:09:14 +02:00
orcli run --memory "2000M" --port "3334" << EOF
2024-12-19 23:17:15 +01:00
orcli import csv "https://git.io/fj5hF" --projectName "duplicates" &
orcli import csv "https://git.io/fj5hF" --projectName "copy" &
wait
echo "finished import"
orcli export csv "duplicates" --output duplicates.csv &
orcli export tsv "duplicates" --output duplicates.tsv &
wait
wc duplicates*
EOF
2023-10-23 00:09:14 +02:00
orcli run --interactive "file1.sh" "file2.sh" - << EOF
2024-12-19 23:17:15 +01:00
echo "finished in $SECONDS seconds"
EOF
2023-10-23 00:09:14 +02:00
```
code: [src/run_command.sh](../src/run_command.sh)