# Bash Processes

**URL:** <https://community.unix.com/t/bash-processes/334867>\
**Category:** UNIX for Dummies Questions & Answers\
**Created:** [September 30, 2013, 6:30am UTC](https://community.unix.com/t/bash-processes/334867 "2013-09-30T06:30:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pedro72](https://community.unix.com/letter_avatar/pedro72/32/5_5575768a8748004e209b776fc1b2916d.png) [@Pedro72](https://community.unix.com/u/Pedro72)\
**Post date:** [September 30, 2013, 6:30am UTC](https://community.unix.com/t/bash-processes/334867/1 "2013-09-30T06:30:15Z")

</div>

Basically, can you create a new ssh session to a server (where there already say a putty session running) and operate using the same bash process?

Currently If I start a new connection then it starts a new bash process. So can this be done? Is there any benefit other than less processes? Or am I making a massive error here trying to do this. (couldn't find anything on google about this)

---

<div class="post-metadata">

**Author:** ![RudiC](https://community.unix.com/letter_avatar/rudic/32/5_5575768a8748004e209b776fc1b2916d.png) [@RudiC](https://community.unix.com/u/RudiC)\
**Post date:** [September 30, 2013, 8:29am UTC](https://community.unix.com/t/bash-processes/334867/2 "2013-09-30T08:29:19Z")

</div>

You may want to consider the `screen` package that allows to leave and reenter sessions. Please be aware that `screen` is not unanimously welcomed by the web community.

---

<div class="post-metadata">

**Author:** ![Pedro72](https://community.unix.com/letter_avatar/pedro72/32/5_5575768a8748004e209b776fc1b2916d.png) [@Pedro72](https://community.unix.com/u/Pedro72)\
**Post date:** [September 30, 2013, 8:47am UTC](https://community.unix.com/t/bash-processes/334867/3 "2013-09-30T08:47:07Z")

</div>

Thanks for the reply. This is the one thing I had found but did not want to use as I cannot install other programs and the screen command is deinfately not installed on the server I am using. (sorry should have said earlier)

If there is another way round or if anyone has any helpful info I am interested to hear.

---

<div class="post-metadata">

**Author:** ![jim\_mcnamara](https://community.unix.com/letter_avatar/jim_mcnamara/32/5_5575768a8748004e209b776fc1b2916d.png) [@jim\_mcnamara](https://community.unix.com/u/jim_mcnamara)\
**Post date:** [September 30, 2013, 10:38am UTC](https://community.unix.com/t/bash-processes/334867/4 "2013-09-30T10:38:46Z")

</div>

I do not see an issue.

1. you are using putty from a windows desktop
2. open two separate putty windows, connect to where you want
3. use Alt/Tab to switch processes. or:
4. Reshape the windows using the cursor so that both sessions fit on the screen at one time.

You can change the title of the putty windows so you don't get confused:

```nohighlight
export SERVER=$(hostname)
echo "setting putty title to $SERVER"
export EXTRA=":Stuff I need to see goes here"
PROMPT_COMMAND="\033]0;${SERVER}${EXTRA}\007"
echo $PROMPT_COMMAND

```

What am I missing?

---

<div class="post-metadata">

**Author:** ![newbie2010](https://community.unix.com/letter_avatar/newbie2010/32/5_5575768a8748004e209b776fc1b2916d.png) [@newbie2010](https://community.unix.com/u/newbie2010)\
**Post date:** [September 30, 2013, 3:09pm UTC](https://community.unix.com/t/bash-processes/334867/5 "2013-09-30T15:09:17Z")

</div>

Not sure if this is part of the question, but I did have a similar question. If you plan to log off of a session (where running processes in the background after a logoff doesn't work), can you go to another terminal and then pick up on the process that is running and continue it at the other terminal?

For example, if you have a cp (copy process) running can you keep logged in to the server you are running it on (serverA), and then attach to it from a different server (serverB) and keep it going? So I would have the cp running on serverA, attach to it on ServerB and then then log off of serverA and the process would still run?

Would a truss command allow you to hook up or help to do this? I know you can use screen and vm terminals, this is just curiosity.
