Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I sometimes run rtorrent at work and go away. When I get home I want to be able to log in to my server and check on how rtorrent's doing, I can us "ps aux" to see what processes are running, but how do I then "enter" the process so I can in this case look at rtorrent's output screen?
You can't magically detach one process that depends on a tty-like thing (like a terminal emulator) and reattach it in any other way. Once you close the tty linked to the process the process dies. Just like X based apps die when you exit X. That is, unless the application can run without a tty, on the background (daemonized) or it's running under some kind of tty emulator or multiplexer, like GNU Screen. You can also look into dtach, which is a simpler tool and has only a subset of the functionality that Screen can do.
Another option is to use a program that can work daemonized. That way, you can run it as a daemon in the background (hence, it's not tied to the tty). If you run it as a daemon then the important output should be on the logs, and you can always use a client program to connect to the daemon at any time to see how's the thing going.
As an example, you could use mldonkey. Once it's daemonized you can connect to the daemon to see what it's doing by using lots of frontends (kmldonkey, localhost:4080 on any web browser, telnet localhost 4000, and probably many other ways). So, as you see, it depends on what do you exactly want to do, and what pieces are involved. I never used rtorrent, and I don't know if it can work as a daemon.
out of interest, where can I find out how to demonize stuff? this term demonize gives google entirely the wrong idea.
Try "daemonize", instead of "demonize".
Most times this is done via a command line option. It depends on the concrete tool. Some tools simply run as daemons by default. Some others will have a --background, -d, --daemon or a similar switch to do this.
This is by design, not all programs can run as daemons and it wouldn't make sense either. If a program is intended to be run on a tty (or a terminal or any other similar thing) then you are not going to be able to run it without that.
In general, if you just want to preserve your command line sessions (as long as you don't turn off your box, that is) learn to use screen. You don't need anything else.
If it's just for rtorrent, investigate if it has daemon capabilities. If it doesn't, you can either use it under screen or use another torrent client that can run as daemon (again, mldonkey can).