Skip to content

Instantly share code, notes, and snippets.

@mbrownnycnyc
Created May 15, 2013 12:51
Show Gist options
  • Save mbrownnycnyc/5583778 to your computer and use it in GitHub Desktop.
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.
#!/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