0

help me to run the command

tmsh list cm device-group one-line | awk '{print $3}'

in expect , this is for F5 load balancer

when i run this in HPNA i'm getting

can't read "3": no such variable
    while executing
Eugène Adell
  • 3,089
  • 2
  • 18
  • 34

1 Answers1

1

Single quotes have no special meaning in Tcl/expect. You would want

tmsh list cm device-group one-line | awk {{print $3}}

While that looks weird, the outer braces are Tcl's non-substituting quotes, and the inner braces are awk's.

glenn jackman
  • 238,783
  • 38
  • 220
  • 352