Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 01-28-2006, 12:31 AM   #1
LQ Newbie
Registered: Dec 2005
Distribution: MEPIS
Posts: 14

Rep: Reputation: 0
Seperation of shell and program

If I launch a program from the shell it closes when I close that particular shell window. Putting an "&" symbol after the program was suggested to me, but I soon figured out that while letting my still use the shell for commands it still closes the program when I close the shell.
Old 01-28-2006, 01:24 AM   #2
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
Use either "nohup" or "screen" to launch the program. The nohup program was written so that someone could log in remotely (back when you had Unix computers in Universities with people logging in on terminals), start a job that would run for a while (such as compiling a kernel for example) and log off without the process getting the HUP (hang up) signal. You redirect the output to a file instead of the screen. With the screen program, you can manage a group of virtual screens, similar to the way the ps command manages jobs.


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
Help writing shell program mral Linux - Newbie 6 12-29-2005 08:26 PM
SHell program in c SatYr_84 Linux - Software 1 10-03-2005 05:49 PM
HELP!! I need to program a shell pleowulf Programming 2 02-11-2005 01:12 PM
Shell Program Veteq Programming 12 08-18-2004 07:20 AM
bash shell program help embsupafly Programming 7 11-27-2002 12:05 AM > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration