Code:
kill $(pidof -x showtime)
kill $(ps -A | grep -w showtime | grep -o '[[:digit:]]\+') # this can be simplified, man ps
or after running the script:
Code:
/usr/bin/showtime
PID=$!
< later >
kill "$PID"
use 'kill -s 9' instead if you like, run 'man kill' or 'help kill' for more info