blob: 958203be9b9a358605cb3a362dd14c82e8190a64 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/sh
while true; do
if [ -f cusips_to_price.txt ]; then
R CMD BATCH --no-restore --no-save ../code/R/build_portfolios.R logs/build_portfolios.Rout &
fi
if [ -f scenarios.txt ]; then
R CMD BATCH --no-restore --no-save ../code/R/build_scenarios.R logs/build_scenarios.Rout
if [ $HOSTNAME = "gomez" ]; then
pythonexec=python2
elif [ $HOSTNAME = "debian" ]; then
pythonexec=python
fi
$pythonexec ../code/python/intex_scenarios.py >logs/intex_scenarios.out
fi
sleep 3
done
|