# Issuing Shutdown of OS from iPhone App

**URL:** <https://forum.sunfounder.com/t/issuing-shutdown-of-os-from-iphone-app/4219>\
**Category:** Robotic kit for Raspberry Pi\
**Created:** [January 7, 2026, 4:59pm UTC](https://forum.sunfounder.com/t/issuing-shutdown-of-os-from-iphone-app/4219 "2026-01-07T16:59:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![zskylar49](https://avatars.discourse-cdn.com/v4/letter/z/3da27b/32.png) [@zskylar49](https://forum.sunfounder.com/u/zskylar49)\
**Post date:** [January 7, 2026, 4:59pm UTC](https://forum.sunfounder.com/t/issuing-shutdown-of-os-from-iphone-app/4219/1 "2026-01-07T16:59:06Z")

</div>

What is the best way to issue a clean shutdown of the OS from within the iPhone controller app? Thanks!

---

<div class="post-metadata">

**Author:** ![Weirdyguy](https://avatars.discourse-cdn.com/v4/letter/w/d78d45/32.png) [@Weirdyguy](https://forum.sunfounder.com/u/Weirdyguy)\
**Post date:** [January 7, 2026, 5:35pm UTC](https://forum.sunfounder.com/t/issuing-shutdown-of-os-from-iphone-app/4219/2 "2026-01-07T17:35:01Z")

</div>

You can do it in SSH, terminal, sudo shutdown now

---

<div class="post-metadata">

**Author:** ![zskylar49](https://avatars.discourse-cdn.com/v4/letter/z/3da27b/32.png) [@zskylar49](https://forum.sunfounder.com/u/zskylar49)\
**Post date:** [January 7, 2026, 7:06pm UTC](https://forum.sunfounder.com/t/issuing-shutdown-of-os-from-iphone-app/4219/3 "2026-01-07T19:06:26Z")

</div>

That’s how I do it now from ssh. Im asking if it can be automated from within the controller app on my phone.

---

<div class="post-metadata">

**Author:** ![Weirdyguy](https://avatars.discourse-cdn.com/v4/letter/w/d78d45/32.png) [@Weirdyguy](https://forum.sunfounder.com/u/Weirdyguy)\
**Post date:** [January 8, 2026, 12:00am UTC](https://forum.sunfounder.com/t/issuing-shutdown-of-os-from-iphone-app/4219/4 "2026-01-08T00:00:46Z")

</div>

Which product of sunfounder are you using?

---

<div class="post-metadata">

**Author:** ![zskylar49](https://avatars.discourse-cdn.com/v4/letter/z/3da27b/32.png) [@zskylar49](https://forum.sunfounder.com/u/zskylar49)\
**Post date:** [January 8, 2026, 1:37pm UTC](https://forum.sunfounder.com/t/issuing-shutdown-of-os-from-iphone-app/4219/5 "2026-01-08T13:37:25Z")

</div>

Pidog v2 is my product.

---

<div class="post-metadata">

**Author:** ![Spf650](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@Spf650](https://forum.sunfounder.com/u/Spf650)\
**Post date:** [January 8, 2026, 2:14pm UTC](https://forum.sunfounder.com/t/issuing-shutdown-of-os-from-iphone-app/4219/6 "2026-01-08T14:14:51Z")

</div>

If you’re happy to modify the existing code then probably the easiest way is to hijack any one of the commands in the app control example that you don’t currently require, e.g “lie” and swap for

```python
import os

```

```python
os.system("sudo shutdown now")

```
