Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

This question already has an answer here:

This question has been reworded, previous one was a duplicate of Execute remote commands, completely detaching from the ssh connection

I want to access to a computer through SSH, run both Iceweasel and Transmission, use Iceweasel to find some torrents, add the torrents to Transmission, close Icewasel, close my SSH session and let Transmission running on the server.

I'm running Transmission using nohup, but if I close Transmission, it closes on the server. If I exit the session, it closes as well.

share|improve this question
Maybe a bit late, but transmission has a dual mode in which you can run it as a daemon, then use a commandline interface or transgui to manage its torrents. –  Shadur Oct 1 '13 at 11:47
@Shadur I have it already configured using the daemon and local web gui –  yzT Oct 1 '13 at 15:21
add comment

marked as duplicate by slm, jasonwryan, Evan Teitelman, Mat, terdon Oct 1 '13 at 4:30

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer

You can try nohup ("no hangup"). For example:

nohup myapp &

If that's not enough, redirect all the I/O streams:

nohup myapp < /dev/null 2>&1 &

By default nohup has already redirected stream 1 to "nohup.out", but you can change that (see man nohup). Wikipedia also has a good article.

Notice that you still need to use & with nohup.

share|improve this answer
add comment

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