Browse Source

Added script startNewCronJobForAutomaticImportTrigger.sh to add cron job

Aleksandr Lizin 9 years ago
parent
commit
bc5f205b36
1 changed files with 9 additions and 0 deletions
  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