LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 03-05-2006, 05:15 PM   #1
dr_zayus69
Member
 
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877

Rep: Reputation: 35
How to run a program in an ssh session that will run after you close out the session?


hi. i just started using ssh (forwarding the X session) to connect to my desktop. here is the situation. I have azureus on my desktop and a new IPTV episode came out that i wanted to download. So i ssh from my laptop into my desktop. Opened firefox to the page and clicked on the torrent and azureus started up and started the torrent. I had done the firefox command with & at the end of it but when azureus opened it's information came into the shell so i would have to hit Ctrl+c to close it out and close the session. Is there a way i could have started it up and had the torrent download and then close the session without having to close azureus? thanks for any replies in advance.
 
Old 03-05-2006, 05:42 PM   #2
piforever
Member
 
Registered: Dec 2005
Distribution: CentOS 5 - Debian 5
Posts: 112

Rep: Reputation: 15
Is this what you want ???
http://wiki.linuxquestions.org/wiki/Nohup
 
Old 03-05-2006, 06:29 PM   #3
dr_zayus69
Member
 
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877

Original Poster
Rep: Reputation: 35
by the description it would appear so but after i log out and log in again and check to see if the program is still running it is not. Is an ssh session independent of the current session that is occuring on the remote host and maybe that is why it isn't staying up?
 
Old 03-05-2006, 06:52 PM   #4
piforever
Member
 
Registered: Dec 2005
Distribution: CentOS 5 - Debian 5
Posts: 112

Rep: Reputation: 15
What I usually do is this
Code:
nohup command [options] > output.log &
and then i log-off...when i log-on back again...if i wanted to see the progress i issue this command
Code:
tail -f output.log
then I know what happened while i'm away....so i'm not sure if what you've been doing is similar to my case..


EDIT
Code:
  If nohup output is redirected to a terminal or is not redirected at all,
  the output is appended to the file nohup.out.	 If the file is created, the
  permission bits are set to Owner Read and Owner Write (600). If nohup.out
  is not writable in the current directory, the output is redirected to
  $HOME/nohup.out.  If neither file can be created nor opened for appending,
  utility is not invoked.

Last edited by piforever; 03-05-2006 at 06:57 PM.
 
Old 03-05-2006, 07:09 PM   #5
Goofy666
LQ Newbie
 
Registered: Jul 2005
Location: Belgium
Distribution: Arch Linux (7.1 'Noodle')
Posts: 1

Rep: Reputation: 0
Isn't it possible to start that torrent with commands so you can work with screen? (Excuse me for not adding a link to the man page, but the system won't let me until I have five posts on this forum)
 
Old 03-05-2006, 07:15 PM   #6
soulestream
Member
 
Registered: Nov 2005
Posts: 183

Rep: Reputation: 30
screen will be what you want.

screen -S sessionname will start the session

screen -R will resume the session


soule
 
  


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
the session manager don't run???? tux66 Slackware 1 05-18-2005 01:29 PM
Starting program remotely and have them continue to run after the session is ended OJAtkinson Linux - General 2 12-07-2004 12:06 PM
Cannot find or run the base session script buldir Fedora 1 06-04-2004 08:14 PM
Xwindows proggy to run windows remote session coopsys Linux - Software 3 08-26-2003 12:38 PM
Run a telnet session?... lhoff Linux - Newbie 1 12-30-2001 06:58 PM


All times are GMT -5. The time now is 04:10 PM.

Main Menu
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