source: osmose-backend/cron-launcher

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

Fix cron-launcher to read file line per line, allowing options to be added

  • Property mode set to 100755
File size: 229 bytes
Line 
1#! /bin/bash
2
3day=$(( ($(date +%s) / (3600 * 24)) % 2))
4hostname=$(hostname -s)
5
6if [ "x$1" != "x" ]; then
7  hostname=$1
8fi
9if [ "x$2" != "x" ]; then
10  day=$2
11fi
12
13while read i; do
14  ./local-launcher $i
15done < cron/$hostname-$day
Note: See TracBrowser for help on using the repository browser.