LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-31-2007, 05:52 AM   #1
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slackware, debian, ubuntu
Posts: 684

Rep: Reputation: 44
rtorrent. how to make it run in the background??


hello everyone,
i just installed rTorrent. seems to run great. but i need more
the reason i installed it in the first place was because i can't have KTorrent running in some X session and be able to retrieve it by opening another session (since i'd only get a new login window - and not the option to log on to the KDE session that is running KTorrent). I tried installing tightVNC to be able to retrieve the exact same KDE session, but tightVNc runs a new X server altogether with a primitive window system, from which however KTorrent can not be run)..

so i ended up in a console solution.
is it possible to run rtorrent, start some downloads i want, and then send it to background ? maybe even log off that session and then later if i log on i can get the same rtorrent window back in the foreground and see the status of the downloads??

thank you i advance for your help
nass
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 10-31-2007, 06:06 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,277
Blog Entries: 1

Rep: Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137
You can use screen to start the program, so when you logout it will not stop.
Code:
screen rtorrent
Then pressing Ctrl-A+D will detach the screen and you can logout. Running
Code:
screen -r
will show you the detached screen sessions and you can resume the one you want running:
Code:
screen -r pid.tty.host
 
4 members found this post helpful.
Old 10-31-2007, 06:08 AM   #3
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slackware, debian, ubuntu
Posts: 684

Original Poster
Rep: Reputation: 44
this is beautiful
thank you very much!
 
Old 08-07-2008, 01:49 AM   #4
a2m
LQ Newbie
 
Registered: Aug 2008
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by nass View Post
this is beautiful
thank you very much!
hi,

i have same issue but it type it it doesnot do anything. Displays an error there are two suitable screens running on the server name::

type screen [-d] -r [pid]tty.host

nothing happens when i try it..
 
Old 08-13-2011, 07:50 AM   #5
blingham
LQ Newbie
 
Registered: Jul 2009
Location: Canada
Distribution: Mint, Fedora, Ubuntu Server
Posts: 28

Rep: Reputation: 3
Thumbs up

I just wanted to confirm that even 4 years later, this post is 100% relevant, and working in Ubuntu 11.04.

Jay
 
2 members found this post helpful.
Old 01-23-2022, 11:16 AM   #6
Mmint
LQ Newbie
 
Registered: Jan 2022
Location: Serbia
Distribution: Linux Mint, Linux Ubuntu, Kali Linux
Posts: 1

Rep: Reputation: 0
Cool

Quote:
Originally Posted by bathory View Post
You can use screen to start the program, so when you logout it will not stop.
Code:
screen rtorrent
Then pressing Ctrl-A+D will detach the screen and you can logout. Running
Code:
screen -r
will show you the detached screen sessions and you can resume the one you want running:
Code:
screen -r pid.tty.host
This save my day
Finally solution for my Ubuntu Server(20.04.1).
Still works in 2022

Last edited by Mmint; 01-23-2022 at 11:19 AM.
 
Old 01-25-2022, 01:29 AM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,871
Blog Entries: 12

Rep: Reputation: 6058Reputation: 6058Reputation: 6058Reputation: 6058Reputation: 6058Reputation: 6058Reputation: 6058Reputation: 6058Reputation: 6058Reputation: 6058Reputation: 6058
Quote:
Originally Posted by Mmint View Post
This save my day
Finally solution for my Ubuntu Server(20.04.1).
Still works in 2022
15 years later, rtorrent is perfectly capable to run as a daemon.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
run c function in the background schneidz Programming 4 09-07-2007 07:29 AM
run c function in the background schneidz Programming 1 09-06-2007 02:05 PM
C++: Way to have System run in background? dive Programming 3 08-17-2006 07:29 PM
how to run a process in the X background sh4d0w13 Linux - General 6 09-12-2005 02:54 PM
how to run any binary in background - background process tej Linux - Newbie 1 08-16-2004 12:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:11 AM.

Contact Us - Advertising Info - Rules - Privacy - Donations - Contributing Member - LQ Sitemap - "Weather apps tell you it'll rain. Wyndo tells you when to go."
Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions