#!/bin/sh

# Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.

# THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF Oracle Corp.
# The copyright notice above does not evidence any actual or intended
# publication of such source code.

echo "Stopping data import for Pattern Match demo..."

ps xww | grep -i "loadgen" | grep "PATTERNMATCH_FACT.xml" | cut -c1-5 | xargs -i kill {} 2>/dev/null
ps xww | grep -i "loadgen" | grep "PATTERNMATCH_FACT_STREAM.xml" | cut -c1-5 | xargs -i kill {} 2>/dev/null

echo "Data input for Pattern Match demo has stopped."
