Added old shipplotter & planeplotter scripts to subversion
authorJean-Michel Nirgal Vourgère <jmv@nirgal.com>
Wed, 11 Aug 2010 16:03:49 +0000 (16:03 +0000)
committerJean-Michel Nirgal Vourgère <jmv@nirgal.com>
Wed, 11 Aug 2010 16:03:49 +0000 (16:03 +0000)
cron/planeplotter.cron [new file with mode: 0755]
cron/shipplotter.cron [new file with mode: 0755]

diff --git a/cron/planeplotter.cron b/cron/planeplotter.cron
new file mode 100755 (executable)
index 0000000..f85f9b6
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/bash
+set -e
+umask 002
+sleep 8
+LOGPATH=/var/lib/ais/planeplotter/logs/`date -u +%Y%m%d`
+LOGFILE=$LOGPATH/`date -u +%H%M%S`
+mkdir -p $LOGPATH
+python -m ais.extras.planeplotter_coaa > $LOGFILE
+#python -m ais.extras.planeplotter_parse $LOGFILE
diff --git a/cron/shipplotter.cron b/cron/shipplotter.cron
new file mode 100755 (executable)
index 0000000..c203f72
--- /dev/null
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+umask 002
+sleep 26
+set -e
+LOGPATH=/var/lib/ais/shipplotter/`date -u +%Y%m%d`
+LOGFILE=$LOGPATH/`date -u +%H%M%S`
+mkdir -p $LOGPATH
+python -m ais.extras.shipplotter_coaa > $LOGFILE
+python -m ais.extras.shipplotter_parselogs $LOGFILE