Reputation: 177
Given the following code
pingval=$(ping6 -c 1 "$url")
time=$($pingval| tail -1| awk '{print $4}'|cut -d '/' -f 2)
Could anyone tell me why I'm receiving a PING: command not found error?
Upvotes: 0
Views: 4788
Reputation: 177
My solution to this was to simply use
time=$(echo pingval|......)
Upvotes: 1
Reputation: 1
I'm presuming you're wrapping this in a shell script? Is the ping6 command in the search path for the shell you're using to execute that script?
Also, stating the obvious: ping6 is also in your path?
which ping6
Upvotes: 0