Login
Register
Menu
Home
Help
Search
rejetto forum
PROBLEMS? QUESTIONS? CLICK HERE!
rejetto forum
»
Software
»
HFS ~ HTTP File Server
»
Display the Computer Uptime/Running Time in Statistics (Solved)
Display the Computer Uptime/Running Time in Statistics (Solved)
Stonesteel
·
6 ·
3662
« previous
next »
Print
Pages:
1
0 Members and 1 Guest are viewing this topic.
Stonesteel
Occasional poster
Posts:
31
Display the Computer Uptime/Running Time in Statistics (Solved)
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).
«
Last Edit: October 19, 2013, 06:48:30 AM by Stonesteel
»
"No Matter How Gifted You Are, Alone Cannot Change The World."
rejetto
Administrator
Tireless poster
Posts:
13523
Re: Display the Computer Uptime/Running Time in Statistics
Reply #1 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
Stonesteel
Occasional poster
Posts:
31
Re: Display the Computer Uptime/Running Time in Statistics
Reply #2 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..
"No Matter How Gifted You Are, Alone Cannot Change The World."
rejetto
Administrator
Tireless poster
Posts:
13523
Re: Display the Computer Uptime/Running Time in Statistics
Reply #3 on:
October 19, 2013, 05:10:50 AM
it's not a %-thing.
it's the code i wrote for you.
Stonesteel
Occasional poster
Posts:
31
Re: Display the Computer Uptime/Running Time in Statistics
Reply #4 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.
"No Matter How Gifted You Are, Alone Cannot Change The World."
rejetto
Administrator
Tireless poster
Posts:
13523
Re: Display the Computer Uptime/Running Time in Statistics (Solved)
Reply #5 on:
November 05, 2013, 10:47:15 AM
by using other commands, like cut, you can customize the result
Print
Pages:
1
rejetto forum
»
Software
»
HFS ~ HTTP File Server
»
Display the Computer Uptime/Running Time in Statistics (Solved)
Search
Username
Password
Always stay logged in
Forgot your password?