#!/bin/bash PID=$(ps -ef | grep "dotnet RealTimeCalcPositionService.dll" | grep -v grep | awk '{print $2}') kill $PID