how is everyone figuring out what entries there are in the mfs database? i have changed the NoMoreNagz script to incorporate the changeDialtime script (no big deal really), but i would like to set the 'Last Successful Call' value in the database. I can change the 'Last Call Attempt' and can set the 'Last Call Status', but I would like to tell it that the Last successful call was now as well. here is the changed script that i am working with.
#!/tvbin/tivosh
##############
# NoMoreNagZ #
##############
#
# 07-14-01 Last Call Attempt now set
# Next Call Attempt now set
source /tvlib/tcl/tv/Inc.itcl
source /tvlib/tcl/tv/mfslib.tcl
source /tvlib/tcl/tv/setup.tcl
source /tvlib/tcl/tv/StatusStrings.itcl
set serviceState 5
set now [clock seconds]
set stateExpiration [expr ($now / 86400) + 365]
set nextCall [expr ($now) + 364*24*60*60]
set db [dbopen]
transaction { set setup [db $db open /Setup]
dbobj $setup set ServiceState $serviceState
dbobj $setup set ServiceStateExpiration $stateExpiration
dbobj $setup set LastCallStatus $StatusStrings::Succeeded
dbobj $setup set LastCallAttempt $now
dbobj $setup set NextCallAttempt $nextCall
}
dbclose $db


Reply With Quote