#!/bin/bash

PID=`ps -eaf | grep streamripper | grep -v grep | awk '{print $2}'`
if [[ "" !=  "$PID" ]]; then
kill -9 $PID > /dev/null 2>&1 |less
fi 
PID=`ps -eaf | grep mpv | grep -v grep | awk '{print $2}'`
if [[ "" !=  "$PID" ]]; then
kill -9 $PID > /dev/null 2>&1 |less
fi 
PID=`ps -eaf | grep yad | grep -v grep | awk '{print $2}'`
if [[ "" !=  "$PID" ]]; then
kill -9 $PID > /dev/null 2>&1 |less
fi 
# Kill python scripts
pkill -f "SimpleStream" 
pkill -f "SimpleRecord" 
rm -f /tmp/tmp* 2>&1 > /dev/null
