Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

In my machine I have installed Ubuntu 12.04 and I have installed putty. I want to start putty from command line. When I run the program from command line and after closing the terminal, putty also gets terminated. How to avoid that ?

share|improve this question

migrated from serverfault.com Oct 9 '12 at 10:06

This question came from our site for professional system and network administrators.

add comment

2 Answers 2

Try to add an "&" behind your command. So putty& will be your command, this will tell the terminal to run it in background. Next you have to type "disown" to detach the process from the terminal.

so:

user@yourhost:putty&
user@yourhost:disown
share|improve this answer
add comment

Prepend the command with nohoup:

nohup putty &
exit
share|improve this answer
    
I thing appending & is quite enough. nohup detaches the process from the user so it still runs when the user logs out. right? –  amyassin Sep 29 '12 at 10:02
1  
No nohup prevents its child process from receiving incoming HUP signals. This will let putty keep running after the "command line" the OP mentioned, is closed. –  Thor Sep 29 '12 at 10:09
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.