user3352349
user3352349

Reputation: 177

PING: command not found

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

Answers (2)

user3352349
user3352349

Reputation: 177

My solution to this was to simply use

time=$(echo pingval|......)

Upvotes: 1

Geekything
Geekything

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

Related Questions