Added nice to compress_archive cron
authorJean-Michel Nirgal Vourgère <jmv@nirgal.com>
Mon, 9 Aug 2010 08:05:20 +0000 (08:05 +0000)
committerJean-Michel Nirgal Vourgère <jmv@nirgal.com>
Mon, 9 Aug 2010 08:05:20 +0000 (08:05 +0000)
bin/compress_archives.cron

index 3360d7c690583faa95021e0f3b7a8ab7063abb84..58cd9e8330d18403332ec4f25e23639d9a21ffbf 100755 (executable)
@@ -1,5 +1,5 @@
 #!/usr/bin/env bash
 cd /var/lib/ais/nmea
 for f in `date -d '-1 day' +%Y%m%d`-*.dump; do
 #!/usr/bin/env bash
 cd /var/lib/ais/nmea
 for f in `date -d '-1 day' +%Y%m%d`-*.dump; do
-    bzip2 $f
+    nice bzip2 $f
 done
 done