浏览代码

Added script startNewCronJobForAutomaticImportTrigger.sh to add cron job

Aleksandr Lizin 9 年之前
父节点
当前提交
bc5f205b36
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      startNewCronJobForAutomaticImportTrigger.sh

+ 9 - 0
startNewCronJobForAutomaticImportTrigger.sh

@@ -0,0 +1,9 @@
+#!/bin/sh
+
+#write out current crontab
+crontab -l > mycron
+#echo new cron into cron file
+echo "01 * * * * curl http://anka-visualize.anka.kit.edu/automaticimport/trigger/ >> automaticimport_trigger.log" >> mycron
+#install new cron file
+crontab mycron
+rm mycron