I'm trying to get my .sh
file to run a Java program for a specific amount of time.
Here's my .sh
file:
#Runs Java Repeatedly.
#Reset directory
cd
#Go until src
cd Desktop/Lin\ Lab/Java\ Workspace/SandBubbler/src/
for((i = 0; i < 10; i++))
do
java testerPackage.BubblerSimulation
#kill process after x amount of seconds.
done
I'm new to Unix/Linux (I started learning it yesterday) so please explain it in a simple way. Thanks!
sleep
specifies the length of the runtime? – Furkan Toprak Jul 11 '17 at 18:51