terminal ping utility written in bash