LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 12-07-2004, 12:31 PM   #1
OJAtkinson
LQ Newbie
 
Registered: Dec 2004
Location: London, UK
Posts: 1

Rep: Reputation: 0
Starting program remotely and have them continue to run after the session is ended


I'm trying to kick off a BitTorrent download on my server (in the loft) via ssh and then shutdown my workstation, however when I shutdown my workstation (thus disconnecting the SSH session) the download gets killed. Apart from using using cron or at (which I know will work but can't help feeling there must be a better way) is there a simple way to do this??


James
 
Old 12-07-2004, 12:57 PM   #2
ralvez
Member
 
Registered: Oct 2003
Location: Canada
Distribution: ArchLinux && Slackware 10.1
Posts: 298

Rep: Reputation: 30
Yes, there is a way. It's called screen.
Screen is a command that runs an instance of your shell. You invoke the command by typing "screen"
After that you start your ssh session (or whatever you want) in the host sever. Now that the download started or the program you want to use is running you "detach" your session from your computer by pressin Ctrl+a and then press d (detach)
You now are free to use your computer in whatever way you need to or log off and go home.
Then from home you can log on and re-attach the session using the command "screen -r".

This is a not well known program (or so it seems) but it does a great job!
I do not know if it is installed in all systems but in my Suse 9.1 pro it is.

Hope this helps.

Rick

Last edited by ralvez; 12-07-2004 at 01:06 PM.
 
Old 12-07-2004, 01:06 PM   #3
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,511

Rep: Reputation: 58
I guess you could run the command with

Code:
nohup <command> &
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Starting X remotely Intacto Linux - Newbie 4 11-28-2005 11:36 PM
any way to continue using the terminal while any program is being run? g_srinivas Linux - Newbie 6 07-20-2005 09:30 AM
connecting to a local X session remotely? SocialEngineer Linux - Networking 6 12-23-2004 02:27 AM
Opening a linux session remotely from windows? WarrenWright Linux - Newbie 12 02-04-2004 11:24 PM
How do you continue a session remotely? cdccarson Linux - General 4 09-08-2002 10:10 PM


All times are GMT -5. The time now is 02:03 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration