# Return to shell

**URL:** <https://forums.plex.tv/t/return-to-shell/34988>\
**Category:** Apps & Creations\
**Created:** [May 28, 2013, 6:05pm UTC](https://forums.plex.tv/t/return-to-shell/34988 "2013-05-28T18:05:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jubei](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/jubei/32/106517_2.png) [@jubei](https://forums.plex.tv/u/jubei)\
**Post date:** [May 28, 2013, 6:05pm UTC](https://forums.plex.tv/t/return-to-shell/34988/1 "2013-05-28T18:05:59Z")

</div>

python PlexConnect.py &

&nbsp;

isn't working on unRAID. &nbsp;Anyway I can launch this and return to the shell?

---

<div class="post-metadata">

**Author:** ![Trudge](https://avatars.discourse-cdn.com/v4/letter/t/e19adc/32.png) [@Trudge](https://forums.plex.tv/u/Trudge)\
**Post date:** [May 28, 2013, 6:06pm UTC](https://forums.plex.tv/t/return-to-shell/34988/2 "2013-05-28T18:06:49Z")

</div>

> python PlexConnect.py &
> 
> isn't working on unRAID. &nbsp;Anyway I can launch this and return to the shell?

[http://forums.plexapp.com/index.php/topic/69402-do-you-need-to-keep-the-terminal-window-open/?p=401370](http://forums.plexapp.com/index.php/topic/69402-do-you-need-to-keep-the-terminal-window-open/?p=401370)

---

<div class="post-metadata">

**Author:** ![jubei](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/jubei/32/106517_2.png) [@jubei](https://forums.plex.tv/u/jubei)\
**Post date:** [May 29, 2013, 12:44pm UTC](https://forums.plex.tv/t/return-to-shell/34988/3 "2013-05-29T12:44:51Z")

</div>

All.....you can cheat this by using: screen python PlexConnect.py

lots of Linux distro's have screen built in and there's a pkg for it for unRAID.

---

<div class="post-metadata">

**Author:** ![plexcloud.tv](https://avatars.discourse-cdn.com/v4/letter/p/a698b9/32.png) [@plexcloud.tv](https://forums.plex.tv/u/plexcloud.tv)\
**Post date:** [May 29, 2013, 2:42pm UTC](https://forums.plex.tv/t/return-to-shell/34988/4 "2013-05-29T14:42:58Z")

</div>

> All.....you can cheat this by using: screen python PlexConnect.py
> 
> lots of Linux distro's have screen built in and there's a pkg for it for unRAID.

When you detach from this screen (CTRL A + d), you will now need to use the PID to reattach to. To do this issue

```
#screen -ls
 
```

This will return something like this:

```
# screen -ls
There is a screen on:
	10257.pts-2.hostname	(Detached)
1 Socket in /var/run/screen/S-root.
```

you then reattach with the PID i highlighted in red.

```
screen -r 10257
```

To make things easier, issue a&nbsp;_'nickname'_ to the screen session by doing this:

```
screen -S my_name_for_this_screen python PlexConnect.py
```

---

<div class="post-metadata">

**Author:** ![jubei](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/jubei/32/106517_2.png) [@jubei](https://forums.plex.tv/u/jubei)\
**Post date:** [May 29, 2013, 2:44pm UTC](https://forums.plex.tv/t/return-to-shell/34988/5 "2013-05-29T14:44:18Z")

</div>

Or you can just type: screen -r to attached to the last screen session. &nbsp;Only works if you have one screen session open.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [December 20, 2019, 11:37pm UTC](https://forums.plex.tv/t/return-to-shell/34988/6 "2019-12-20T23:37:46Z")

</div>

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