25 lines
389 B
Bash
Executable File
25 lines
389 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
function say_done {
|
|
espeak "done" 2> /dev/null
|
|
}
|
|
|
|
function say_failed {
|
|
espeak "failed" 2> /dev/null
|
|
}
|
|
|
|
set -o monitor
|
|
./build-profile.sh
|
|
cp position.blank position.txt
|
|
operf rtapi_app > profile.log &
|
|
linuxcnc -r circular_arcs.ini &
|
|
LOCAL_LCNC_PID=$!
|
|
echo $LOCAL_LCNC_PID
|
|
(./machine_setup.py "$1" && say_done) || say_failed
|
|
#fg
|
|
#End profiling
|
|
pkill -9 axis
|
|
fg
|