Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Running Ubuntu 9.10, when I execute:

rdesktop 147.145.168.224 &

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 &
share|improve this question
add comment

3 Answers

up vote 6 down vote accepted

Just use:

nohup rdesktop 147.145.168.224 &
share|improve this answer
    
nice, wasn't aware of this nohup command... Thanks! –  codeLes Nov 10 '09 at 16:23
    
Excellent, thanks! –  Jonesinator Nov 10 '09 at 17:16
add comment

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 147.145.168.224 &
$ 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.

share|improve this answer
add comment

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

Alt+F2

and then enter your command in the the entry box:

rdesktop 147.145.168.224 &

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

rdesktop -u myUname -fP 10.130.3.13

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

Ctrl+Alt+Enter

And then the same combo to get back into fullscreen.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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