rejetto forum
Software => HFS ~ HTTP File Server => Topic started by: Stonesteel on October 08, 2013, 02:36:44 AM
-
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). :)
-
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
-
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..
-
it's not a %-thing.
it's the code i wrote for you.
-
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. :)
-
by using other commands, like cut, you can customize the result