# Find running process OR see if specific computer user logged in?

**URL:** <https://forum.inductiveautomation.com/t/find-running-process-or-see-if-specific-computer-user-logged-in/19786>\
**Category:** Ignition\
**Created:** [September 24, 2018, 7:30am UTC](https://forum.inductiveautomation.com/t/find-running-process-or-see-if-specific-computer-user-logged-in/19786 "2018-09-24T07:30:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![StefanGronberg](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/stefangronberg/32/6288_2.png) [@StefanGronberg](https://forum.inductiveautomation.com/u/StefanGronberg)\
**Post date:** [September 24, 2018, 7:30am UTC](https://forum.inductiveautomation.com/t/find-running-process-or-see-if-specific-computer-user-logged-in/19786/1 "2018-09-24T07:30:45Z")

</div>

Hi.

Which would be the best way to see if a specific .EXE is running or if a specific computer user where the gateway runs at, is logged in?

Customer wish to see in the hmi weather the server is logged in (so a specific file process can run and works).  
Just now someone had accidentilly logged out the server which closed the required exe.

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [September 24, 2018, 10:38am UTC](https://forum.inductiveautomation.com/t/find-running-process-or-see-if-specific-computer-user-logged-in/19786/2 "2018-09-24T10:38:01Z")

</div>

The best way would be to run the process as a service. Then no user has to be logged in.

[https://stackoverflow.com/questions/3582108/create-windows-service-from-executable](https://stackoverflow.com/questions/3582108/create-windows-service-from-executable)

Then, use a task to ensure the service is running.

> <https://stackoverflow.com/questions/3325081/how-to-check-if-a-service-is-running-via-batch-file-and-start-it-if-it-is-not-r>

---

<div class="post-metadata">

**Author:** ![StefanGronberg](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/stefangronberg/32/6288_2.png) [@StefanGronberg](https://forum.inductiveautomation.com/u/StefanGronberg)\
**Post date:** [September 24, 2018, 1:39pm UTC](https://forum.inductiveautomation.com/t/find-running-process-or-see-if-specific-computer-user-logged-in/19786/3 "2018-09-24T13:39:26Z")

</div>

Hi.  
I added a small timer to the current program i have at the server (that has to run as user and not service) due to mapped folders etc.  
I modified the program to write a textfile where ignition gateway can read, and then i check if last time stamp in that file is over 60 seconds on, then i throw up a red sign at the client view stating the server is not ok etc.

Similar to your suggestion, but not a service thought.
