Computer Hope

Software => Computer programming => Topic started by: karlosss on November 28, 2016, 02:07:17 AM

Title: VPS: how to run as system a .exe tool as long as the server is UP
Post by: karlosss on November 28, 2016, 02:07:17 AM
So i have a Tool.exe i run it through a script ''Script.bat''.Now all i want is to run it day and night ''as SYSTEM'',as long as the server is UP!! even if the other 4 administrators restarts or log off my session,how to do that?can someone help me? I strugle doing this for more than 6 months with poor results,i tried NSSM.exe but it only works when the vps is restarted,and not when i'm logged off.

thank you!!!!! :o
Title: Re: VPS: how to run as system a .exe tool as long as the server is UP
Post by: DaveLembke on November 28, 2016, 06:02:06 AM
You might need to wrap this program around a service name. Services can run in ways that batches cant.

https://www.coretechnologies.com/products/AlwaysUp/Apps/RunBatchFileAsAService.html
Title: Re: VPS: how to run as system a .exe tool as long as the server is UP
Post by: karlosss on November 29, 2016, 09:39:59 AM
working fine but how can i stop this??? i receive same message for windows 7 and server 2008
Title: Re: VPS: how to run as system a .exe tool as long as the server is UP
Post by: karlosss on November 29, 2016, 09:42:36 AM
You might need to wrap this program around a service name. Services can run in ways that batches cant.

https://www.coretechnologies.com/products/AlwaysUp/Apps/RunBatchFileAsAService.html

working fine but how can i stop this??? i receive same message for windows 7 and server 2008
(http://i66.tinypic.com/10728si.jpg)

when i press View the message i can see my tool running
Title: Re: VPS: how to run as system a .exe tool as long as the server is UP
Post by: DaveLembke on November 29, 2016, 11:46:42 AM
Interesting typo in the window "form" vs "from"

More info here on hiding it... https://blogs.msdn.microsoft.com/patricka/2011/03/14/troubleshooting-interactive-services-detection/
Title: Re: VPS: how to run as system a .exe tool as long as the server is UP
Post by: karlosss on November 29, 2016, 12:56:44 PM
Interesting typo in the window "form" vs "from"

More info here on hiding it... https://blogs.msdn.microsoft.com/patricka/2011/03/14/troubleshooting-interactive-services-detection/

I use a .bat script for a .exe tool
and yes i receive this:

(http://i64.tinypic.com/24glgd3.jpg)

When i check this i see nothing,is empty:

(http://i64.tinypic.com/21jr9ty.jpg)
Title: Re: VPS: how to run as system a .exe tool as long as the server is UP
Post by: karlosss on November 29, 2016, 02:30:26 PM
what about this?  https://www.youtube.com/watch?v=5QrvC0gzmRw