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