#! /bin/ksh # busy - show progress indicators # Heiner Steven (heiner.steven@odn.de) # # usage: # busy& busipid=$! # # do some actions # kill $busypid set -A Indicators -- "|" "/" "-" "\\" integer n=${#Indicators[@]} integer i=0 while true do print -n -- "${Indicators[i]}" ((i=(i+1)%n)) sleep 1 done