philhu
09-15-2004, 10:57 AM
hi
I am looking at the old padhack.tcl, which is supposed to work for '3.x and greater'
Well, the resources seems to have moved, or I am confused by tcl.
I go into Tivowebplus, select mfs, syActvie, resource groups.
They index 32 down into a variable, so I move across 32 in the list in MFS in TWP
So I go into tcl and paste/type padhack, looking at element 19 of resgroup 32
and it is wrong, but 20 is the right string.
Ok, paste/type in padhack to that line, look at index 19 and index 20 of resgroup 32 in tcl, both are wrong.
I am not a tcl genius, so I am just learning. What did I do wrong?
This is the padhack code I am using, writtn, I thin, by Embeem:
EnableTransactionHoldoff true
set db [dbopen]
transaction {
set swsysa [db $db open "/SwSystem/ACTIVE"]
set resgrp [dbobj $swsysa get ResourceGroup]
set tmpgrp [lindex $resgrp 32]
set tmpres [lindex [dbobj $tmpgrp get "Item"] 19]
dbobj $tmpres set String "On-time|0|1 minute early|60|2 minutes early|120|3 minutes early|180|4 minutes early|240|5 minutes
early|300|10 minutes early|600|1 minute late|-60|2 minutes late|-120|3 minutes late|-180|4 minutes late|-240|5 minutes late|-3
00|10 minutes late|-600|"
set tmpres [lindex [dbobj $tmpgrp get "Item"] 21]
dbobj $tmpres set String "On-time|0|1 minute longer|60|2 minutes longer|120|5 minutes longer|300|15 minutes longer|900|30 mi
nutes longer|1800|1 hour longer|3600|1 1/2 hours longer|5400|3 hours longer|10800|1 minute shorter|-60|2 minutes shorter|-120|
3 minutes shorter|-180|4 minutes shorter|-240|5 minutes shorter|-300|10 minutes shorter|-600|"
dbobj $tmpgrp remove "CompressedFile"
puts "done, please reboot"
}
I am looking at the old padhack.tcl, which is supposed to work for '3.x and greater'
Well, the resources seems to have moved, or I am confused by tcl.
I go into Tivowebplus, select mfs, syActvie, resource groups.
They index 32 down into a variable, so I move across 32 in the list in MFS in TWP
So I go into tcl and paste/type padhack, looking at element 19 of resgroup 32
and it is wrong, but 20 is the right string.
Ok, paste/type in padhack to that line, look at index 19 and index 20 of resgroup 32 in tcl, both are wrong.
I am not a tcl genius, so I am just learning. What did I do wrong?
This is the padhack code I am using, writtn, I thin, by Embeem:
EnableTransactionHoldoff true
set db [dbopen]
transaction {
set swsysa [db $db open "/SwSystem/ACTIVE"]
set resgrp [dbobj $swsysa get ResourceGroup]
set tmpgrp [lindex $resgrp 32]
set tmpres [lindex [dbobj $tmpgrp get "Item"] 19]
dbobj $tmpres set String "On-time|0|1 minute early|60|2 minutes early|120|3 minutes early|180|4 minutes early|240|5 minutes
early|300|10 minutes early|600|1 minute late|-60|2 minutes late|-120|3 minutes late|-180|4 minutes late|-240|5 minutes late|-3
00|10 minutes late|-600|"
set tmpres [lindex [dbobj $tmpgrp get "Item"] 21]
dbobj $tmpres set String "On-time|0|1 minute longer|60|2 minutes longer|120|5 minutes longer|300|15 minutes longer|900|30 mi
nutes longer|1800|1 hour longer|3600|1 1/2 hours longer|5400|3 hours longer|10800|1 minute shorter|-60|2 minutes shorter|-120|
3 minutes shorter|-180|4 minutes shorter|-240|5 minutes shorter|-300|10 minutes shorter|-600|"
dbobj $tmpgrp remove "CompressedFile"
puts "done, please reboot"
}