LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 11:31 AM   #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, 11:57 AM   #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 12:06 PM.
 
Old 12-07-2004, 12:06 PM   #3
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

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

Code:
nohup <command> &
 
  


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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:26 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