rejetto forum

Display the Computer Uptime/Running Time in Statistics (Solved)

0 Members and 1 Guest are viewing this topic.

Offline Stonesteel

  • Occasional poster
  • *
    • Posts: 31
    • View Profile
Greetings!


Is it possible to display the computer's running time/uptime in the statistics module? I tried several commands like timestamp, date, time, now, but only displays the current date, I wanted somehow to display the computer's running time, because the %uptime% command displays only the running time of the HFS server not the computer itself, I wanted to display the running time of computer vs the running time of the HFS server because I have added an additional script in event scripts that resets (stop/start) the server every 12:01AM to avoid the crashing of the server (memory leak). :)
« Last Edit: October 19, 2013, 06:48:30 AM by Stonesteel »
"No Matter How Gifted You Are, Alone Cannot Change The World."


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
HFS cannot do everything.
You have to create the solution.
HFS can execute other programs, by using command {.exec.}
So you find a program like this
http://support.microsoft.com/kb/232243/it

and then you use commands
{.exec|C:\downloads\uptime.exe|out=result.}
{.^result.}

you can find more information on commands here
http://www.rejetto.com/wiki/index.php?title=HFS:_scripting_commands#Others




Offline Stonesteel

  • Occasional poster
  • *
    • Posts: 31
    • View Profile
Thank you for your response rejetto, using the uptime.exe, how can I display it in the statistics module then? what kind of %% I'll be using then? ex. %uptime% for the server uptime. %?% for the uptime.exe result..
"No Matter How Gifted You Are, Alone Cannot Change The World."


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile

Offline Stonesteel

  • Occasional poster
  • *
    • Posts: 31
    • View Profile
Hello rejetto, yes now I got your point, thank you very much, it's now working but kinda long so it takes two lines for the uptime. :)
"No Matter How Gifted You Are, Alone Cannot Change The World."


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile