I’m working on a custom application that needs to check against total operating time. Is there a command that can run on the OS to pull this value? TIA.
Basically just need the date and time the terminal first checked into the console. This is the Total Operating Time value that’s calculated in the console. Is there a command I can use in bash to get this value locally on the terminal?
Maybe create a view in UMS:
I was looking for a way to pull it locally on the terminal. I only want the app (reboot) to run if the terminal has first checked into the console less than 15 minutes ago. Having success using modified time of license (.lic) file.
lines=$(find /license/dsa/licenses -type f -mmin +15 | wc -l); if [ $lines -eq 1 ]; then : ; else reboot; fi
Here is another way that may work for you:
Create a profile that lays down a script and then runs it. The script will be a while loop that checks the license file, etc, sleeps for some time and then checks again. Once it has checked in then reboot.
Here is a sample for another use case:
Continue reading and comment on the thread ‘Custom application needs to check against total operating time. Is there a command that can run on the OS to pull this value?’. Not a member? Join Here!
Learn more, search the IGEL Knowledge Base
Ask a question or comment on the above messasge thread?Join or log in to the IGEL Community to ask us anything and meet other IGEL customers, partners, and EUC enthusiasts.
Submit a question, or Join Today!
Popular Message Threads
- USB webcams in combination with RDP on IGEL OS?
- IGEL OS on Raspberry Pi?
- After upgrading to IGEL OS 11.04.200.01 my Citrix Storefront configuration does not work anymore – Error adding store: AM_ERROR_AUTH_NETWORK_ERROR
- Citrix session crashes with black screen, any advice and how do I find logging?
- IGEL UMS Universal Update Error: “could not resolve host name”
- What is required for Zoom VDI/Zoom Media Plugin for Citrix on IGEL OS?
- Can I to use Remote desktop and webcam support via a thin client with IGEL software?