LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 01-28-2006, 01:31 AM   #1
cerin
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, 02:24 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
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.
 
  


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


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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration