# Clear gateway printer queue via button

**URL:** <https://forum.inductiveautomation.com/t/clear-gateway-printer-queue-via-button/91424>\
**Category:** Ignition\
**Tags:** python, ignition81, perspective, scripting\
**Created:** [June 5, 2024, 5:00pm UTC](https://forum.inductiveautomation.com/t/clear-gateway-printer-queue-via-button/91424 "2024-06-05T17:00:49Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [June 5, 2024, 5:03pm UTC](https://forum.inductiveautomation.com/t/clear-gateway-printer-queue-via-button/91424/2 "2024-06-05T17:03:28Z")

</div>

See this from five hours ago:

> [@Help making system.util.execute work on Windows](https://forum.inductiveautomation.com/t/help-making-system-util-execute-work-on-windows/91396/2):
>
> Simply not true. Ignition only needs local privileges to run, and that is all it gets when running as the default LOCAL SYSTEM user. The service also has no connection to what you do on the desktop as far as networks are concerned, so your testing in the terminal is insufficient. Instead of using system.util.execute(), which is fire-and-forget, use java's [ProcessBuilder](https://forum.inductiveautomation.com/search?q=ProcessBuilder%20order%3Alatest) so you can collect the output and error streams from your batch file's execution.

---

_[View the full topic](https://forum.inductiveautomation.com/t/clear-gateway-printer-queue-via-button/91424)._
