LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 09-24-2004, 05:58 PM   #1
digitalgravy
Member
 
Registered: Nov 2003
Posts: 86

Rep: Reputation: 15
Continue executing file after you logout


If you log in remotely and start a program in the shell then set it to run in the background will it still execute if you logout?
 
Old 09-24-2004, 07:02 PM   #2
lappen
Member
 
Registered: Aug 2003
Location: Sweden
Posts: 83

Rep: Reputation: 15
I have no idea but a sollution could be to start the program in a 'screen'. thats how I run my irc client

-d -m Start screen in "detached" mode. This creates a new session but
doesn't attach to it. This is useful for system startup
scripts.

screen -r atach
 
Old 09-24-2004, 07:03 PM   #3
digitalgravy
Member
 
Registered: Nov 2003
Posts: 86

Original Poster
Rep: Reputation: 15
Thanks, I just got that figured out and I was going to come back and delete my post.

Thanks again.
 
Old 10-06-2004, 05:53 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
There is a command called nohup that you can use to start the program. The program name stands for 'no HUP'. Output is redirected to a file, and logging out will not cause the HUP signal begin sent to the background program.

The nohup command is one of the GNU coreutils. Read through the `info nohup` texinfo manual for details. The 'man nohup' may not contain all the details that are in the info page.
 
Old 10-06-2004, 05:55 PM   #5
Samsara
Member
 
Registered: May 2003
Distribution: Ubuntu, Mac OS X Tiger
Posts: 481

Rep: Reputation: 32
Quote:
Originally posted by jschiwal
The program name stands for 'no HUP'.
I always thought it stood for "no hang-up"

Samsara
 
Old 10-06-2004, 08:28 PM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
HUP stands for Hang UP so both versions are correct.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Executing a .deb file Wolvenmoon Debian 1 08-18-2005 10:50 PM
Executing a file in wine uphu Linux - Games 3 12-10-2004 04:18 PM
executing a downloaded file? GiaCo Linux - Newbie 6 10-25-2004 09:35 AM
executing file dontknowshit Mandriva 2 06-10-2004 08:28 PM
executing a file pantera Programming 1 05-25-2004 01:06 AM

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

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