I am trying to write a bash script that essentially acts like the traceroute command, I have written the following code:
#! /bin/bash
ttl=1
dest_ip=$1
#Send packets with increasing ttl and stop when the ping is sucsessfull
until ["ping -t $ttl -c 1 $dest_ip" = "0"]; do
echo "$ttl"
(($ttl+=1))
done
I ran this and get the error enter image description here