# Start/stop PiTool from the script/command line

**URL:** <https://forum.openmr.com/t/start-stop-pitool-from-the-script-command-line/40319>\
**Category:** Discussion\
**Created:** [January 27, 2023, 2:56pm UTC](https://forum.openmr.com/t/start-stop-pitool-from-the-script-command-line/40319 "2023-01-27T14:56:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheIronWolf](https://forum.openmr.com/user_avatar/forum.openmr.com/theironwolf/32/11162_2.png) [@TheIronWolf](https://forum.openmr.com/u/TheIronWolf)\
**Post date:** [January 27, 2023, 2:56pm UTC](https://forum.openmr.com/t/start-stop-pitool-from-the-script-command-line/40319/1 "2023-01-27T14:56:54Z")

</div>

Is it possible to start/stop PiTool and related services from the command line?

I’ve upgraded to recent PiTool in order to try PimaxXR but it looks like now PiTool is required to be running in order to use my HMD (actually, it starts required processes. If I kill it after without it knowing, headset runs fine). I used to start/stop PiServiceLauncher and kill some processes, but this no longer works. So, checking out if anyone already figured it out.

And, a side question - is there a way to start PiTool minimized?

Thanks!

---

<div class="post-metadata">

**Author:** ![Heliosurge](https://forum.openmr.com/user_avatar/forum.openmr.com/heliosurge/32/28073_2.png) [@Heliosurge](https://forum.openmr.com/u/Heliosurge)\
**Post date:** [January 29, 2023, 1:52am UTC](https://forum.openmr.com/t/start-stop-pitool-from-the-script-command-line/40319/2 "2023-01-29T01:52:12Z")

</div>

Yes I cannot remember the fellow but a user had made a shell script? Will see if can find it.

It may akso be in the Table of content wiki.

Cluck on profile pic then Star I believe.

---

<div class="post-metadata">

**Author:** ![TheIronWolf](https://forum.openmr.com/user_avatar/forum.openmr.com/theironwolf/32/11162_2.png) [@TheIronWolf](https://forum.openmr.com/u/TheIronWolf)\
**Post date:** [January 29, 2023, 2:30am UTC](https://forum.openmr.com/t/start-stop-pitool-from-the-script-command-line/40319/3 "2023-01-29T02:30:04Z")

</div>

thanks - I searched everywhere to my best ability but did not find a way. Thing is there was a way - start/stop PiLauncherService, but that does not work with Pitool 284… in order to init headset I actually have to start Pitool. It’s not the end of the world, but I wish there was command line way to cleanly **close** Pitool, like it is possible to do with SimHub and Crew Chief, and also make it start minimized. Just killing Pitool and related processes messes things up with latest Pitool.

---

<div class="post-metadata">

**Author:** ![Heliosurge](https://forum.openmr.com/user_avatar/forum.openmr.com/heliosurge/32/28073_2.png) [@Heliosurge](https://forum.openmr.com/u/Heliosurge)\
**Post date:** [January 29, 2023, 9:54am UTC](https://forum.openmr.com/t/start-stop-pitool-from-the-script-command-line/40319/4 "2023-01-29T09:54:56Z")

</div>

This is the topic and by chance you were a participant.

> [@Question for .bat programmers (start & stop service and tasks)](https://community.openmr.com/t/question-for-bat-programmers-start-stop-service-and-tasks/17209):
>
> Hi, Can we start the service (PiServiceLauncher) and stop it (and Pimax related tasks) with a single .bat file? I mean start with a .bat, use the headset and stop with that same .bat (like we can do with Oculus services).

Edit may need to ask @PimaxQuorra to discuss with team… as you mentioned this older script/batch method might not work as before.

---

<div class="post-metadata">

**Author:** ![system](https://forum.openmr.com/uploads/default/original/2X/1/19863a63bd0f452a38669829a92f279c59ddd490.png) [@system](https://forum.openmr.com/u/system)\
**Post date:** [March 30, 2023, 9:55am UTC](https://forum.openmr.com/t/start-stop-pitool-from-the-script-command-line/40319/5 "2023-03-30T09:55:24Z")

</div>

Closed on March 30, 2023, 9:55am UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
