# Running external python script from button event

**URL:** <https://forum.inductiveautomation.com/t/running-external-python-script-from-button-event/71028>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [March 14, 2023, 2:32pm UTC](https://forum.inductiveautomation.com/t/running-external-python-script-from-button-event/71028 "2023-03-14T14:32:57Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Matrix\_Engineering](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/matrix_engineering/32/19781_2.png) [@Matrix\_Engineering](https://forum.inductiveautomation.com/u/Matrix_Engineering)\
**Post date:** [March 14, 2023, 2:50pm UTC](https://forum.inductiveautomation.com/t/running-external-python-script-from-button-event/71028/2 "2023-03-14T14:50:29Z")

</div>

It is against the forum policy to start multiple topics regarding the same subject.

> [@Running external python script in Ignition](https://forum.inductiveautomation.com/t/running-external-python-script-in-ignition/70769):
>
> Hello everyone. I write external python script, which connect to IP camera, take a screenshot and saves the photo to a folder on the disk. I use system.util.execute to run this script from Ignition: system.util.execute(['C:/Program Files/Python311/python.exe', 'C:/Praca/Testy kamer/test.py']) When I run this line of code from the script console in ignition - the script executes correctly and the image is written to disk. But if I run system.util.execute function from button event on click - e…

---

_[View the full topic](https://forum.inductiveautomation.com/t/running-external-python-script-from-button-event/71028)._
