TCL
Good, Bad and Ugly
TCL or "Tool Command Language"
History
The Good
Simple to Learn
12 Rules of Tcl, man n Tcl
Hello World
What explanation would be complete with out hello world:
puts "hello world"
Interactive tclsh
gandalf% tclsh8.5
% pwd
/home/marc
%
Error Messages
Error as docs demo
String example
% string ?
unknown or ambiguous subcommand "?": must be bytelength, compare, equal, first, index, is, last, length, map, match, range, repeat, replace, reverse, tolower, totitle, toupper, trim, trimleft, trimright, wordend, or wordstart
String example pt 2
% string totitle
wrong # args: should be "string totitle string ?first? ?last?"
%
% string totitle "the GRAND puBA stuff"
The grand puba stuff
Stable over time
Extensions
If you look you will probably find what you want
Cisco
Tcl is embeded in your Cisco devices if they run IOS. There is a book on the subject "TcL Scripting for Cisco IOS", http://www.ciscopress.com/bookstore/product.asp?isbn=1587059452
Cisco CNR also uses tcl
TclKit/StartKit
Start kit micro howto
start kit demo
the Bad
Where the pain is
Resources
goodies in tcllib that I like
Highlight/sections:
programming tools
mathematics
data structures
text processing
networking
cgi programming
Specifics:
ldap/ldapx
smtp/mime
report/csv/struct::matrix
tcllib_ip
textutils
cmdline
pki
Thanks and any questions?
Marc Spitzer
mspitzer@gmail.com