Forum Discussion
Darrell_Kesti_5
Jul 25, 2008Historic F5 Account
Seeing an error when trying to save this in the iRule editor
when CLIENT_ACCEPTED {
set time_r [split [clock format [clock seconds] -format {%H:%M} ] " "]
set time_f [expr [expr [lindex $time_r 0]*100] + [lindex $time_r 1]]
if { not(($time_f >= 0800) && ($time_f <= 1700)) } {
set compression "off"
}
}
when HTTP_RESPONSE {
if { $compression eq "off" } {
COMPRESS::disable
}
}
line 3: [use curly braces to avoid double substitution] [[expr [lindex $time_r 0]*100]]
line 3: [use curly braces to avoid double substitution] [[lindex $time_r 0]*100]
line 4: [parse error: PARSE badNumber 187 {expected integer but got "0800" (looks like invalid octal number)}] [{ not(($time_f >= 0800) && ($time_f <= 1700)) }]