-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrun.sh
executable file
·33 lines (24 loc) · 1.1 KB
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
packagePath=$(dirname $( realpath ${BASH_SOURCE}))
MathematicaCommand=`cat $packagePath/preload/MathematicaCommand.txt`
ShellProcessor=`cat $packagePath/preload/ShellProcessor.txt`
if [ $# -eq 0 ]
then
AbsMissionInput=$( realpath ./config.txt)
else
if [ -f $1 ]
then
AbsMissionInput=$( realpath $1)
else
echo $1" does not exist or is not a valid file."
AbsMissionInput=$( realpath ./config.txt)
echo "reseting mission input as "$AbsMissionInput
fi
fi
$MathematicaCommand -script $packagePath/Initialization.wl $AbsMissionInput
$MathematicaCommand -script $packagePath/AllMissionCompleteQ.wl $AbsMissionInput | $ShellProcessor
$MathematicaCommand -script $packagePath/Summary.wl $AbsMissionInput
#$MathematicaCommand -script $packagePath/Initialization.wl config.txt
#$MathematicaCommand -script $packagePath/AllMissionCompleteQ.wl config.txt | $ShellProcessor
#$MathematicaCommand -script $packagePath/Summary.wl config.txt
$MathematicaCommand -script $packagePath/AssignIBPReduction.wl $AbsMissionInput
$MathematicaCommand -script $packagePath/LaunchIBPReduction.wl $AbsMissionInput | $ShellProcessor