Re: exit application script

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"Penny" <Penny@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:D9C821CE-CC4E-4F10-AA58-6FC2B6437A30@xxxxxxxxxxxxxxxx
I have an application that has a limited amount of licenses. I'm told
that
the amount of licenses we've got for this application is sufficient, but
there are users who stay logged into the application all day and not even
using it.

Anyways the application doesn't natively have a mechinism for exiting the
user out of the application if it's been idle for a set amount of time.

Is there a way to write a script that exits the application if the user
hasn't used it for 25 minutes? It sounds reasonable enough.

How would you determine that it has been idle for some period?
Perhaps constantly monitoring the CPU usage of the process?

Do you have access to the application's source code?
Have you tried contacting the vendor for a solution?

An alternative might be to have a script ask the user periodically
"Are you using the application?" and if they either respond "No"
or don't respond with in a short time then you exit the application.
As a user I wouldn't like the constant interruption but it's one way.


.



Relevant Pages

  • Re: demand dialing
    ... way of enabling dial on demand for a regular analog modem? ... script that is runnable by root - something like ... The idle 300 will cause the system to disconnect ... prevent pppd from deciding that the link is not in use. ...
    (comp.os.linux.networking)
  • Re: How to run program in Linux
    ... presumably written in, and what Linux distro. ... Nautilus isn't setting it the way you'd like, ... So your code in the main script could do something ... I run the script in Idle it produces the correct result and shows the ...
    (comp.lang.python)
  • Re: Moving interfaces
    ... about the ISP (I can see the connection is being provided by Level3, ... You create a script named ... Running that from a command line as root worked (note that most of the ... The idle 300 will cause ...
    (alt.os.linux)
  • Re: $ARGV[0] breaks the script
    ... thus if the process is running then it exits, ... > the script will not work ... use absolute paths for binaries (ps and grep in this case) ... > Gregory Machin ...
    (perl.beginners)
  • Re: Re: Complete frustration
    ... I want to edit it then I'll choose the "Edit with IDLE" context menu. ... But changing the PATH environment variable affects a command typed in the shell, but does not affect what happens when you either type the name of a python script directly, or when you double-click on such a file. ...
    (comp.lang.python)