So I'm trying to add a countdown timer to show on screen while john is running based on user input, I can get the timer to run after john but not at the same time, this what I have so far.
timeout=$(($timeout))
while timeout $timeout /usr/sbin/john --fork=2 NT.out &>/dev/null >> johnlog.txt; do
while [ $timeout -gt 0 ]; do
echo -ne "$timeout\033[0K\r"
sleep 1
: $((timeout--))
done
done
Any Help is much appreciated.