LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-21-2006, 09:40 AM   #1
depam
Member
 
Registered: Sep 2005
Posts: 856

Rep: Reputation: 30
How to run something even after logging out?


Hi!

I know this may seem a dumb question but I am not really good at memorizing commands. I've read this before but I can't remember where I read it. What command should I type in so that the process will continue even after I log out? For example, I ssh on certain machine and would like to download something using the wget. After I logout, I want to continue downloading as long as the machine is up. Is that possible? How will I do it? Thanks.
 
Old 07-21-2006, 09:59 AM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Personally I use the screen command to do such things. It is sort of like VNC for console in that you can disconnect from a screen, let it do its thing, and then reconnect from someplace else. Check out man screen for the details on how to use it.
 
Old 07-21-2006, 09:59 AM   #3
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
append & at the end to put it in background. disown will tell shell not to terminate program on your logout. This works in recent shells. Or use nohup.
 
Old 07-21-2006, 09:59 AM   #4
prozac
Member
 
Registered: Oct 2005
Location: Australia
Distribution: slackware 12.1
Posts: 753

Rep: Reputation: 32
you could run the command in background by appending a & after the command as in
Code:
 somecommand&
this will continue running even if you logout.
 
Old 07-21-2006, 03:01 PM   #5
stug
LQ Newbie
 
Registered: Mar 2004
Posts: 5

Rep: Reputation: 0
I think if you put & at the end, it will still stop when you logout. & just makes it so you can continue using the same terminal session. I think what you want is $nohup <command> &

(nohup = no hangup, i think)
 
  


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
Run in the background even after logging off rust8y Linux - Newbie 13 05-19-2006 06:38 AM
Cannot get NVIDIA-Linux-x86_64-1.0-6629-pkg2.run to run properly doctorwebbox Linux - Hardware 0 02-06-2005 06:18 AM
Not able to run audio Cds (not MP3) and run VCDS.. satish427 Linux - Newbie 4 09-24-2004 11:27 PM
using red-carpet without logging out and logging as root. packman Linux - Software 1 12-09-2002 02:55 AM
Java applets run fine in Konqueror, but won't run in MS IE. OAnimal Linux - Software 7 12-04-2002 06:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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