source: osmose-backend/local-launcher

Last change on this file was 1d88047, checked in by Jocelyn Jaubert <jocelyn.jaubert@…>, 7 years ago

Add launcher to launch on local machine, and wait for the end of the script

  • Property mode set to 100755
File size: 277 bytes
Line 
1#! /bin/sh
2
3set -e
4
5CTY=$1
6OPT=$2
7
8dir=/data/work/osmose/logs
9log=$dir/analyse_$(date "+%Y-%m-%d_%H-%M-%S").$CTY.log
10err=$dir/analyse_$(date "+%Y-%m-%d_%H-%M-%S").$CTY.err
11
12cd /data/project/osmose/backend/
13python ./osmose_run.py --cron --country "$CTY" $OPT > "$log" 2> "$err"
Note: See TracBrowser for help on using the repository browser.