tcl script problem

From: Geert Nijs (geert.nijs@simac.be)
Date: Thu Jun 14 2007 - 06:33:16 ART


All,
 
I am trying to make a simple tcl script, but i am stuck. I need to run the "sh run" command to extract information.
 
When i do a tcl "sh run", i don't get any configuration output.
Why is the exec "sh run" command not working ??
(platform C6500 - 12.2(18)SXF8)
 
 
 
HOST(tcl)#exec "sh run"
Building configuration...
Current configuration : 137 bytes
!
! Last configuration change at 17:34:24 CEST Wed Jun 13 2007
! NVRAM config last updated at 11:20:17 CEST Thu Jun 14 2007
!
!
!
!
end
 
 
However when i do a normal "sh run", i do get the output:
 
HOST(tcl)# sh run
Building configuration...
Current configuration : 24192 bytes
!
! Last configuration change at 17:34:24 CEST Wed Jun 13 2007
! NVRAM config last updated at 11:20:17 CEST Thu Jun 14 2007
!
upgrade fpd auto
version 12.2
no service pad
service timestamps debug uptime
service timestamps log datetime msec localtime show-timezone
service password-encryption
service internal
service counters max age 5
!
etc........
 
Geert
disclaimer : http://webservices.simac.be/disclaimer.htm



This archive was generated by hypermail 2.1.4 : Sun Jul 01 2007 - 17:24:49 ART