Running Ubuntu 9.10, when I execute:

rdesktop &

The remote desktop window appears, and the command appears to end in the shell it was executed from because I can execute further commands; however, when I close the shell the remote desktop window closes with it. How can I spawn the rdesktop process such that it remains open when the terminal that spawned it closes? I don't seem to have the same problem with running:

firefox &
| improve this question | | | | |

Just use:

nohup rdesktop &
| improve this answer | | | | |
  • nice, wasn't aware of this nohup command... Thanks! – codeLes Nov 10 '09 at 16:23

If you have a background process running already and want to close it's parent process (the terminal window) without killing the child process, you can disown it:

$ rdesktop &
$ disown

After the process is disowned, it will not be killed when it's parent process terminates.

As a side note, you don't have this problem with firefox, because firefox is a shell script that launches firefox-bin, such that firefox-bin is not a child process of your terminal.

| improve this answer | | | | |

Why not just launch your rdesktop from your launcher. For default Ubuntu just hit:


and then enter your command in the the entry box:

rdesktop &

Although I don't use the ampersand (&) for mine. Typically my command is:

rdesktop -u myUname -fP

This opens rdesktop in fullscreen mode and enables bitmap caching. To get back to my desktop I just have to hit:


And then the same combo to get back into fullscreen.

| improve this answer | | | | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.