aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'script/run.sh')
-rwxr-xr-xscript/run.sh56
1 files changed, 56 insertions, 0 deletions
diff --git a/script/run.sh b/script/run.sh
new file mode 100755
index 0000000..a66aaf4
--- /dev/null
+++ b/script/run.sh
@@ -0,0 +1,56 @@
+#!/bin/sh
+export LANG=en_US.utf8
+export LC_CTYPE="en_US.utf8"
+export LC_NUMERIC="en_US.utf8"
+export LC_TIME="en_US.utf8"
+export LC_COLLATE="en_US.utf8"
+export LC_MONETARY="en_US.utf8"
+export LC_MESSAGES="en_US.utf8"
+export LC_PAPER="en_US.utf8"
+export LC_NAME="en_US.utf8"
+export LC_ADDRESS="en_US.utf8"
+export LC_TELEPHONE="en_US.utf8"
+export LC_MEASUREMENT="en_US.utf8"
+export LC_IDENTIFICATION="en_US.utf8"
+
+if [ ! -e /tmp/ics/ ];
+then
+ mkdir /tmp/ics/
+fi
+
+cd /my/calendar/bin
+java Calendar --log /tmp/ics/M1Info_CSA.log --classes ../data/M1INFO_CSA_CLASSES --groups ../data/M1INFO_CSA_GROUPS --outputs /tmp/ics/
+java Calendar --log /tmp/ics/M1Info_DC.log --classes ../data/M1INFO_DC_CLASSES --groups ../data/M1INFO_DC_GROUPS --outputs /tmp/ics/
+java Calendar --log /tmp/ics/M1Info_DL.log --classes ../data/M1INFO_DL_CLASSES --groups ../data/M1INFO_DL_GROUPS --outputs /tmp/ics/
+java Calendar --log /tmp/ics/M1Info_IARF.log --classes ../data/M1INFO_IARF_CLASSES --groups ../data/M1INFO_IARF_GROUPS --outputs /tmp/ics/
+java Calendar --log /tmp/ics/M1Info_IGAI.log --classes ../data/M1INFO_IGAI_CLASSES --groups ../data/M1INFO_IGAI_GROUPS --outputs /tmp/ics/
+java Calendar --log /tmp/ics/M1Info_IHM.log --classes ../data/M1INFO_IHM_CLASSES --groups ../data/M1INFO_IHM_GROUPS --outputs /tmp/ics/
+java Calendar --log /tmp/ics/M1Info_SIAME.log --classes ../data/M1INFO_SIAME_CLASSES --groups ../data/M1INFO_SIAME_GROUPS --outputs /tmp/ics/
+java Calendar --log /tmp/ics/M2Info_CSA.log --classes ../data/M2INFO_CSA_CLASSES --groups ../data/M2INFO_CSA_GROUPS --outputs /tmp/ics/
+java Calendar --log /tmp/ics/M2Info_DC.log --classes ../data/M2INFO_DC_CLASSES --groups ../data/M2INFO_DC_GROUPS --outputs /tmp/ics/
+java Calendar --log /tmp/ics/M2Info_DL.log --classes ../data/M2INFO_DL_CLASSES --groups ../data/M2INFO_DL_GROUPS --outputs /tmp/ics/
+java Calendar --log /tmp/ics/M2Info_IARF.log --classes ../data/M2INFO_IARF_CLASSES --groups ../data/M2INFO_IARF_GROUPS --outputs /tmp/ics/
+java Calendar --log /tmp/ics/M2Info_IGAI.log --classes ../data/M2INFO_IGAI_CLASSES --groups ../data/M2INFO_IGAI_GROUPS --outputs /tmp/ics/
+java Calendar --log /tmp/ics/M2Info_RO.log --classes ../data/M2INFO_RO_CLASSES --groups ../data/M2INFO_RO_GROUPS --outputs /tmp/ics/
+java Calendar --log /tmp/ics/M2Info_SIAME.log --classes ../data/M2INFO_SIAME_CLASSES --groups ../data/M2INFO_SIAME_GROUPS --outputs /tmp/ics/
+#java Calendar --log /tmp/ics/M1Info.log --classes ../data/M1INFO_CLASSES --groups ../data/M1INFO_GROUPS --outputs /tmp/ics/
+#java Calendar --log /tmp/ics/M2RIT_IAICI.log --classes ../data/M2RIT_IAICI_CLASSES --groups ../data/M2RIT_IAICI_GROUPS --outputs /tmp/ics/
+#java Calendar --log /tmp/ics/M2RIT_RIBDM.log --classes ../data/M2RIT_RIBDM_CLASSES --groups ../data/M2RIT_RIBDM_GROUPS --outputs /tmp/ics/
+#java Calendar --log /tmp/ics/M2RIT_RO.log --classes ../data/M2RIT_RO_CLASSES --groups ../data/M2RIT_RO_GROUPS --outputs /tmp/ics/
+#java Calendar --log /tmp/ics/M2RIT_RT.log --classes ../data/M2RIT_RT_CLASSES --groups ../data/M2RIT_RT_GROUPS --outputs /tmp/ics/
+#java Calendar --log /tmp/ics/M2RIT_SRLC.log --classes ../data/M2RIT_SRLC_CLASSES --groups ../data/M2RIT_SRLC_GROUPS --outputs /tmp/ics/
+#java Calendar --log /tmp/ics/M2IM.log --classes ../data/M2IM_CLASSES --groups ../data/M2IM_GROUPS --outputs /tmp/ics/
+#java Calendar --log /tmp/ics/M2DL.log --classes ../data/M2DL_CLASSES --groups ../data/M2DL_GROUPS --outputs /tmp/ics/
+#java Calendar --log /tmp/ics/M2IHM.log --classes ../data/M2IHM_CLASSES --groups ../data/M2IHM_GROUPS --outputs /tmp/ics/
+#java Calendar --log /tmp/ics/M2CAMSI.log --classes ../data/M2CAMSI_CLASSES --groups ../data/M2CAMSI_GROUPS --outputs /tmp/ics/
+#java Calendar --log /tmp/ics/L3INFO_RENNES.log --classes ../data/L3INFO_RENNES_CLASSES --groups ../data/L3INFO_RENNES_GROUPS --outputs /tmp/ics/
+#java Calendar --log /tmp/ics/MSPE_EMS.log --classes ../data/MSPE_EMS_CLASSES --groups ../data/MSPE_EMS_GROUPS --outputs /tmp/ics/
+
+cd /tmp/ics/
+7z a cal_data.zip ./*.ics
+scp cal_data.zip dreamhost:~/multiagentsystems/calendar/output/
+ssh dreamhost 'cd ~/multiagentsystems/calendar/output/; unzip -o cal_data.zip'
+rm cal_data.zip
+echo "Last run was" `date +%Y/%m/%d\ %Hh%M` "(GMT)." > all_logs
+cat /tmp/ics/*.log >> all_logs
+scp all_logs dreamhost:~/multiagentsystems/calendar/last_log.log