edgecloudsim/scripts/sample_app5/stop_scenarios.sh

16 lines
282 B
Bash
Raw Normal View History

#!/bin/sh
echo "This script kills all java processes including Eclipse etc."
read -p "Do you want to continue[y/n]? " REPLY
if [ "$REPLY" = "y" ]
then
while pgrep java >/dev/null 2>&1
do
killall java
sleep 1
done
fi
echo "Operation completed. bye..."