changeset 46:dfbb643b82a3

tee import logs to a file
author smith@nwoca.org
date Tue, 02 Feb 2016 21:24:28 +0000
parents dc40a6ed0af3
children a0283d218ff5
files scripts/import-usas.sh scripts/import-usps.sh scripts/training.sh
diffstat 3 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/import-usas.sh	Wed Jan 27 17:37:41 2016 -0500
+++ b/scripts/import-usas.sh	Tue Feb 02 21:24:28 2016 +0000
@@ -10,7 +10,7 @@
 export IMP_EM=${IMP_EM-}
 
 # start import and wait for completion
-docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import.yml up usasimport
+docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import.yml up usasimport | tee usasimport.log
 # remove temporary container
 docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import.yml rm -f usasimport
 # start application
--- a/scripts/import-usps.sh	Wed Jan 27 17:37:41 2016 -0500
+++ b/scripts/import-usps.sh	Tue Feb 02 21:24:28 2016 +0000
@@ -10,7 +10,7 @@
 export IMP_EM=${IMP_EM-}
 
 # start import and wait for completion
-docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import.yml up uspsimport
+docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import.yml up uspsimport | tee uspsimport.log
 # remove temporary container
 docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import.yml rm -f uspsimport
 # start application
--- a/scripts/training.sh	Wed Jan 27 17:37:41 2016 -0500
+++ b/scripts/training.sh	Tue Feb 02 21:24:28 2016 +0000
@@ -16,7 +16,7 @@
      fi
 
      for i in $(eval echo {01..${2:-10}}); do
-	mkdir -p $BASEDIR/training-$i
+    	mkdir -p $BASEDIR/training-$i
      done
 
      for t in $( ls -d training-* ); do
@@ -35,7 +35,7 @@
 
   compose)
 
-     for t in $( ls -d training-* ); do
+     for t in $( ls -d *training-* ); do
          cd $BASEDIR/$t
          docker-compose ${*:2}  
      done
@@ -43,7 +43,7 @@
  
   reset)
 
-     for t in $( ls -d training-* ); do
+     for t in $( ls -d *training-* ); do
          cd $BASEDIR/$t
 
          docker-compose stop