how to get last activity in 6.4os with script???

???
Please help!!

answer is

:local a [/in wi reg get number=0 last-activity]; :put $a;