X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=sidecars%2Flistener%2Frun_replay.sh;fp=sidecars%2Flistener%2Frun_replay.sh;h=0000000000000000000000000000000000000000;hb=835ea34297bb2d238c1bedaf5430953ef43d58da;hp=e73abf3210c9430399db8d31f1e9f26fa5f90be2;hpb=0380b52b8987cfa776ee840f85cf6f4d8b661711;p=ric-app%2Fmc.git diff --git a/sidecars/listener/run_replay.sh b/sidecars/listener/run_replay.sh deleted file mode 100755 index e73abf3..0000000 --- a/sidecars/listener/run_replay.sh +++ /dev/null @@ -1,141 +0,0 @@ -#!/usr/bin/env ksh -# Do NOT use bash; it cannot handle constructing variables in while loops. - - -# vim: ts=4 sw=4 noet: -#---------------------------------------------------------------------------------- -# -# Copyright (c) 2018-2019 AT&T Intellectual Property. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -#--------------------------------------------------------------------------------- - - -# ---------------------------------------------------------------------- -# Mnemonic: run_replay.sh -# Abstract: Simple script to make starting the replay binary easier. -# Defaults: -# /var/lib/mc/listener -- directory for fifos -# -# The input file can be supplied with -f and if omitted then -# standard intput is assumed. This should allow the following -# when run in a docker container: -# docker run --rm -i -v /tmp/replay_fifos:/var/lib/mc/listener run_replay.sh /dev/null # if these are there, don't natter on about them - (( count++ )) - done - - ls MT_* | wc -l | read found - if (( count != found )) - then - echo "warn: after pre-create, expected $count FIFOs, but found only $found" - fi - ) -fi - -if [[ -n $data ]] -then - if [[ ! -r $data ]] - then - echo "abort: cannot find data file: $data" - exit 1 - fi - - data="-f $data" -fi - -if [[ -n $gate ]] -then - echo "waiting for gate file to appear: $gate" - while true - do - if [[ -e $gate ]] - then - break - fi - sleep 1 - done -fi - -if (( delay )) -then - echo "pausing $delay seconds before starting rdc_display..." - sleep $delay -fi - -echo "starting rdc_replay" -rdc_replay -d $fifo_dir $data -