# Python Script execution

**URL:** <https://forum.universal-robots.com/t/python-script-execution/25736>\
**Category:** Technical Questions\
**Created:** [December 16, 2022, 4:12pm UTC](https://forum.universal-robots.com/t/python-script-execution/25736 "2022-12-16T16:12:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![abdul.abusamra](https://avatars.discourse-cdn.com/v4/letter/a/7feea3/32.png) [@abdul.abusamra](https://forum.universal-robots.com/u/abdul.abusamra)\
**Post date:** [December 16, 2022, 4:12pm UTC](https://forum.universal-robots.com/t/python-script-execution/25736/1 "2022-12-16T16:12:22Z")

</div>

I have a python script the I run manually through the linux command prompt that I access through the pendant. The script runs an XML-RPC server with functions that are being called by the PolyScope. The problem is that when I turn off the controller or restart the robot, I will have to manually rerun the script. Is there a way to run the script automatically on startup? Please advise.

---

<div class="post-metadata">

**Author:** ![sko](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/sko/32/573_2.png) [@sko](https://forum.universal-robots.com/u/sko)\
**Post date:** [December 19, 2022, 3:01pm UTC](https://forum.universal-robots.com/t/python-script-execution/25736/2 "2022-12-19T15:01:41Z")

</div>

Hello @abdul.abusamra

take a look at our [myDaemonSwing - sample](https://github.com/UniversalRobots/MyDaemonSwing). There you get an insight in how run an XML - RPC server as a daemon process on the robot.
