-
Notifications
You must be signed in to change notification settings - Fork 3
/
panda_run.sh
executable file
·22 lines (16 loc) · 1.07 KB
/
panda_run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
# Working script for running PANDA in different scenarios.
# Edit 'panda_config.m' to set program parameters.
# Console running
#matlab -nodisplay -nosplash -nodesktop -nojvm -r "run('panda_config.m'); run('panda_run.m');"
# Foreground running
#matlab -nodisplay -nosplash -nodesktop -nojvm -r "run('panda_config.m'); run('panda_run.m'); quit;"
# Background running (./panda_run.sh &)
nohup matlab -nodisplay -nosplash -nodesktop -nojvm -r "run('panda_config.m'); run('panda_run.m'); quit;" >& panda.`hostname`.log
# Email notification when done
echo "PANDA run on `hostname` has just finished: `date`." | mail -s "Task finished on `hostname`" -a panda.`hostname`.log `whoami`
# Testing
#matlab -nodisplay -nosplash -nodesktop -nojvm -r "run('panda_config_test.m'); run('panda_run.m'); quit;"
#diff /tmp/panda.test.txt test_data/panda.txt
# Benchmark (5 repeats)
#matlab -nodisplay -nosplash -nodesktop -nojvm -r "run('panda_config_test.m'); run('panda_run.m'); run('panda_run.m'); run('panda_run.m'); run('panda_run.m'); run('panda_run.m'); quit;" >& panda.test.`hostname`.log