Complete 3axis tutorial native and Web/WASM parity tools
This commit is contained in:
20
run-3axis-tutorial.sh
Executable file
20
run-3axis-tutorial.sh
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
LINUXCNC_ROOT="/home/mes006/linuxcncWebWASM/linuxcnc"
|
||||
CASE_INI="${LINUXCNC_ROOT}/configs/sim/axis/vismach/3axis-tutorial/3axis-tutorial.ini"
|
||||
PROGRAM_FILE="${LINUXCNC_ROOT}/configs/nc_files/3dtest.ngc"
|
||||
|
||||
if [[ ! -f "${CASE_INI}" ]]; then
|
||||
printf '3axis-tutorial configuration not found: %s\n' "${CASE_INI}" >&2
|
||||
exit 1
|
||||
fi
|
||||
if [[ ! -f "${PROGRAM_FILE}" ]]; then
|
||||
printf '3axis-tutorial program not found: %s\n' "${PROGRAM_FILE}" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd "${LINUXCNC_ROOT}"
|
||||
# -r keeps LinuxCNC diagnostics in the terminal opened by the desktop shortcut.
|
||||
export AXIS_OPEN_FILE="${PROGRAM_FILE}"
|
||||
exec /usr/bin/linuxcnc -r "${CASE_INI}"
|
||||
Reference in New Issue
Block a user