hot_pit
07-14-2004, 06:22 PM
im tring to get some info like wkup,allup,monthup and the data i recieve are from wrong files ... see code and output ....
if {[catch {set uf [userfile bin2ascii]}] == 0} {
regexp -nocase {[a][l][l][u][p] [^\n]+} $uf line1
iputs $line1
regexp -nocase {[a][l][l][d][n] [^\n]+} $uf line2
iputs $line2
regexp -nocase {[m][o][n][t][h][u][p] [^\n]+} $uf line3
iputs $line3
regexp -nocase {[m][o][n][t][h][d][n] [^\n]+} $uf line4
iputs $line4
.
.
.
and output :
[R] 200-allup 494 8655874 46537 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
[R] 200-alldn 194 2538297 79823 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
[R] 200-monthup 494 8655874 46537 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
[R] 200-monthdn 193 2529823 79776 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
[R] 200-wkup 494 8655874 46537 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
[R] 200-wkdn 193 2529823 79776 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
[R] 200-dayup 494 8655874 46537 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
[R] 200-daydn 193 2529823 79776 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
if {[catch {set uf [userfile bin2ascii]}] == 0} {
regexp -nocase {[a][l][l][u][p] [^\n]+} $uf line1
iputs $line1
regexp -nocase {[a][l][l][d][n] [^\n]+} $uf line2
iputs $line2
regexp -nocase {[m][o][n][t][h][u][p] [^\n]+} $uf line3
iputs $line3
regexp -nocase {[m][o][n][t][h][d][n] [^\n]+} $uf line4
iputs $line4
.
.
.
and output :
[R] 200-allup 494 8655874 46537 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
[R] 200-alldn 194 2538297 79823 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
[R] 200-monthup 494 8655874 46537 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
[R] 200-monthdn 193 2529823 79776 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
[R] 200-wkup 494 8655874 46537 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
[R] 200-wkdn 193 2529823 79776 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
[R] 200-dayup 494 8655874 46537 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
[R] 200-daydn 193 2529823 79776 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0