TCL script enhancement.

From: Greg Wendel (gwendel@gmail.com)
Date: Sun Jan 20 2008 - 16:30:58 ARST


Richerich at the link below has an interesting new twist to the ubiquitous
TCP script we all know and love. Check out the link below.

http://www.sadikhov.com/forum/lofiversion/index.php?t108090.html

Here is a quick excerpt.:

foreach ip {
1.1.1.1
2.2.2.2
} {
if { [regexp "(!!!)" [exec "ping $ip timeout 1" ]] } {
puts "$ip"
} else { puts "$ip **** failed ***" }
}
which outputs

1.1.1.1
2.2.2.2
3.3.3.3 **** failed ****

Thank you very much Richerich for this helpful info.

-- 
Gregory Wendel
Springfield VA, 22153


This archive was generated by hypermail 2.1.4 : Fri Feb 01 2008 - 10:38:00 ARST