rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: Stonesteel on October 08, 2013, 02:36:44 AM

Title: Display the Computer Uptime/Running Time in Statistics (Solved)
Post 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). :)
Title: Re: Display the Computer Uptime/Running Time in Statistics
Post by: rejetto on October 15, 2013, 06:57:30 AM
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


Title: Re: Display the Computer Uptime/Running Time in Statistics
Post by: Stonesteel on October 15, 2013, 02:23:38 PM
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..
Title: Re: Display the Computer Uptime/Running Time in Statistics
Post by: rejetto on October 19, 2013, 05:10:50 AM
it's not a %-thing.
it's the code i wrote for you.
Title: Re: Display the Computer Uptime/Running Time in Statistics
Post by: Stonesteel on October 19, 2013, 06:48:11 AM
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. :)
Title: Re: Display the Computer Uptime/Running Time in Statistics (Solved)
Post by: rejetto on November 05, 2013, 10:47:15 AM
by using other commands, like cut, you can customize the result