#!/bin/bash

# Generated at Wed Nov  7 21:29:43 CET 2012 - Do not edit!
# template: /DB/HOME/nerces/SISMO/SEISCOMP/seiscomp-2.6/templates/msrtsimul.tpl

export SEISCOMP_ROOT="/DB/HOME/nerces/SISMO/SEISCOMP/seiscomp-2.6"

if [ ! -r "$SEISCOMP_ROOT/lib/env.sh" ]; then
    echo "Cannot read $SEISCOMP_ROOT/lib/env.sh"
    exit 1
fi

source "$SEISCOMP_ROOT/lib/env.sh"

if [ ! -p "$SEISCOMP_ROOT/acquisition/mseedfifo" ]; then
    echo "Named pipe $SEISCOMP_ROOT/acquisition/mseedfifo does not exist"
    exit 1
fi

exec python "$SEISCOMP_ROOT/acquisition/lib/msrtsimul.py" "$@" >$SEISCOMP_ROOT/acquisition/mseedfifo

