how to continue to run a program after logging off ?
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!
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
how to continue to run a program after logging off ?
I am using fedora on my laptop.
I wish to run transmission client even when I am not logged in. Actually, I have a broadband connection, but when I am not on desk I log off using Ctrl+Backspace. But this makes transmission stop. I want transmission to continue even after I logout, since the system continues running.
I tried
nohup transmission-gtk &
and
( transmission-gtk &)
They didnot work ?!?
any other way? By the way, I donot want to put it in a startup script.
thanks in advance
nishith
that's not possible as the app will be connected to the X server display. so with no X session, all apps under it have to die. nohup or no nohup. you might want to spawn a seperate vnc server session to run it inside...?
If you just want to log out the GUI but don't mind having a non-GUI session open, then you could use getty (press CTRL-ALT-F1, probably F7 to get back to X) login, and use the cli version of the transmission client (or some other command line torrent client).
You'd still be logged in though...
Another thing you could do is use cron or at and schedule the program (has to be command line). If you have your MTA correctly set you'd probably get an e-mail after the download is completed.
I don't know whether fedora desktop login includes a switch user option, but that might do what you need. i.e. put you back to the login screen without terminating your session.
Failing that, as others have said, you could consider using a command line torrent program instead of transmission or if your only issue is security rather than allowing someone else to use the computer while your trasmission runs in the background you could just lock the screen.
edit: as a afterthought, if you don't want others to accidentally kill you transmission (if you choose the lock screen option), you might want to disable ctrl-alt-backspace too.
As acid_kewpie already suggested the easiest thing to do is run it in a vnc server, it'll be completely independent of whether your logged in or not and you could actually connect to the vnc server and check on it remotely.
I guess root user is not allowed to lock the screen. I use rhel5 and it does not allow me lock the screen if I login as root.
I wouldn't be logging in as root and running bit torrent clients. Log in as a normal user, become root, and run your program then. That way you can lock your screen.
that's not possible as the app will be connected to the X server display. so with no X session, all apps under it have to die. nohup or no nohup. you might want to spawn a seperate vnc server session to run it inside...?
Hey Acid_kewpie, What if he created a dummy user account the had a console set to false and use that login sort of as a way to control transmission in more of a service kind of like how httpd and mysqld and others do. I don't think it would work but that was all I could come up with.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.