cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1263
Views
0
Helpful
1
Replies

TCL exec command withount result

adnane dakna
Beginner
Beginner

when I launched  command "show pppoe session  | i Vi46 " from cli  the result is Ok , but when we try save result under tclsh #set result [exec "show pppoe session  | i Vi46 "] , the result is emplty , please check if I missed some  chunck of code

1 Reply 1

Joe Clarke
Hall of Fame Cisco Employee Hall of Fame Cisco Employee
Hall of Fame Cisco Employee

There used to be a bug where the use of pipes in tclsh didn't work.  I would strongly recommend not using tclsh, and instead using EEM Tcl.  If you have to use tclsh, make sure you're running recent code.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Recognize Your Peers