LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 11-26-2008, 04:54 AM   #1
nkd
Member
 
Registered: Oct 2006
Location: india
Distribution: fedora 8, ubuntu 10.10
Posts: 318

Rep: Reputation: 34
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
 
Old 11-26-2008, 05:07 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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...?
 
Old 11-26-2008, 05:20 AM   #3
rikijpn
Member
 
Registered: Jun 2007
Location: Japan
Distribution: Debian lenny, DSL, Solaris 10
Posts: 157

Rep: Reputation: 33
how about using the cli version?

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.
 
Old 11-26-2008, 05:47 AM   #4
nidhinmd
Member
 
Registered: Aug 2007
Location: Cochin, Kerala, India
Posts: 32

Rep: Reputation: 3
Make a script and try to run with cron or atd

Last edited by nidhinmd; 11-26-2008 at 05:49 AM.
 
Old 11-26-2008, 06:00 AM   #5
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,638

Rep: Reputation: Disabled
How would a script run a program that is GUI and with no X running?
 
Old 11-26-2008, 06:02 AM   #6
ArfaSmif
Member
 
Registered: Oct 2008
Location: Brisbane Australia
Distribution: Fedora, Centos, Manjaro
Posts: 319

Rep: Reputation: 70
Why not just lock your screen?
 
Old 11-26-2008, 06:14 AM   #7
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,638

Rep: Reputation: Disabled
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.
 
Old 11-26-2008, 06:19 AM   #8
GazL
LQ Veteran
 
Registered: May 2008
Posts: 7,002

Rep: Reputation: 5133Reputation: 5133Reputation: 5133Reputation: 5133Reputation: 5133Reputation: 5133Reputation: 5133Reputation: 5133Reputation: 5133Reputation: 5133Reputation: 5133
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.

Last edited by GazL; 11-26-2008 at 06:20 AM.
 
Old 11-26-2008, 10:36 AM   #9
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
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.
 
Old 11-26-2008, 07:18 PM   #10
ArfaSmif
Member
 
Registered: Oct 2008
Location: Brisbane Australia
Distribution: Fedora, Centos, Manjaro
Posts: 319

Rep: Reputation: 70
Quote:
Originally Posted by linuxlover.chaitanya View Post
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.
 
Old 11-26-2008, 09:13 PM   #11
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by acid_kewpie View Post
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.
 
Old 11-26-2008, 11:19 PM   #12
nidhinmd
Member
 
Registered: Aug 2007
Location: Cochin, Kerala, India
Posts: 32

Rep: Reputation: 3
Quote:
Originally Posted by linuxlover.chaitanya View Post
How would a script run a program that is GUI and with no X running?
Easily run GUI programs with no X with the support of 'Xvfb'
 
Old 11-28-2008, 02:22 PM   #13
nkd
Member
 
Registered: Oct 2006
Location: india
Distribution: fedora 8, ubuntu 10.10
Posts: 318

Original Poster
Rep: Reputation: 34
seems like using the cli version of transmission through a script is the best option.
Quote:
Easily run GUI programs with no X with the support of 'Xvfb'
Shall try that out too...thanks
nishith
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
What to do AFTER logging in via ssh to a cluster. How do I run a program? bjb133 Linux - Newbie 3 09-18-2008 08:08 PM
Will script continue to run even after closing putty for remote access anjanesh Linux - Newbie 11 08-07-2006 03:05 AM
any way to continue using the terminal while any program is being run? g_srinivas Linux - Newbie 6 07-20-2005 08:30 AM
Starting program remotely and have them continue to run after the session is ended OJAtkinson Linux - General 2 12-07-2004 12:06 PM
Continue running a script after logging out? AlvinK Linux - Newbie 0 08-28-2003 06:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:31 PM.

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
Open Source Consulting | Domain Registration