Created
May 15, 2013 12:51
-
-
Save mbrownnycnyc/5583778 to your computer and use it in GitHub Desktop.
rastream.sh for use with rastream's `-f`. This is part of the original distribution unmodified.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Argus Client Software. Tools to read, analyze and manage Argus data. | |
# Copyright (C) 2000-2012 QoSient, LLC. | |
# All Rights Reserved | |
# | |
# Script called by rastream, to process files. | |
# | |
# Since this is being called from rastream(), it will have only a single | |
# parameter, filename, | |
# | |
# Carter Bullard <carter@qosient.com> | |
# | |
PATH="/usr/local/bin:$PATH"; export PATH | |
package="argus-clients" | |
version="3.0.2" | |
OPTIONS="$*" | |
FILES= | |
while test $# != 0 | |
do | |
case "$1" in | |
-r) shift; FILES="$1"; break;; | |
esac | |
shift | |
done | |
racluster -M replace -r $FILES | |
gzip $FILES | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment