Search code examples
asp.netwindowssshcygwin

SSH Equivalent on Windows


I am making an Asp.Net application which does the following on the client computer:

  • Establish a Connection
  • Check client's cpu usage to see if it is idle or not
  • if the client is idle it starts executing a c application
  • while executing the script if client starts doing something (also checked by monitoring his cpu usage) stop signal is sent
  • start signal is again sent to the client if he is back to his idle position

If the client is Ubuntu, I use ssh and execute what I want to. What is the way of doing this in Windows without the root access.

thanks in advance for replying.


Solution

  • This sounds a bit dodgy to me. However, what you are looking for is called PsExec (http://technet.microsoft.com/en-us/sysinternals/bb897553)

    UPDATE

    The only other way I can think of doing this is to use the built in task scheduler for windows.

    With the task scheduler you can set a task to start when a computer has been idle for a particular amount of time and pause or stop it when it ceases to be idle.

    Once the task is installed, just forget about it.