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 02-11-2004, 11:37 AM   #1
gauge73
Member
 
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Rep: Reputation: 30
This One is Really Simple


I want to be able to start a process in a shell, then close the shell and have the process continue running. I am trying to run TeamSpeak at the moment and used the following command...

./TeamSpeak &

It runs TeamSpeak and the shell gives me a prompt so I can start doing other things... however, if the shell gets closed, so does TeamSpeak.

1) Is this because TeamSpeak is running as a child of the shell?
2) How do I fix this?
 
Old 02-11-2004, 11:43 AM   #2
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
Your best shot would be using a program which does just like windows run... I use gnome-run myself with blackbox. It's pretty neat:

http://freshmeat.net/projects/gmrun/

regards!
 
Old 02-11-2004, 11:48 AM   #3
gauge73
Member
 
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Original Poster
Rep: Reputation: 30
Thanks for the help!

You mean to tell me that there is no way to detatch a process and have it run after closing a shell or logging out, except by using 3rd-party software?
 
Old 02-11-2004, 11:53 AM   #4
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
or instead of running simply :
./TeamSpeak
use nohup instead :
nohup TeamSpeak

Last edited by DrOzz; 02-11-2004 at 11:54 AM.
 
Old 02-11-2004, 11:55 AM   #5
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
My pleasure I am not really sure if that would be possible. I think it depends more of the application itself to keep running once it started. If you take apache as example, you start it with:

apachetl start

And you can close the terminal whenever you please and apache will keep running until you tell it to stop (apachetl stop). Depending of your desktop manager, this application (run) might be available, as gnome or kde. Using lighter desktops as Blackbox (my case) it's done by using a third part application (as gnome-run or bbrun), I think(?)
 
Old 02-11-2004, 11:56 AM   #6
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
Quote:
Originally posted by DrOzz
or instead of running simply :
./TeamSpeak
use nohup instead :
nohup TeamSpeak
hmmmm, that was new for me . Thanks for sharing DrOzz
 
Old 02-11-2004, 11:59 AM   #7
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
no problem, ya learn something new everyday eh ;-)
 
Old 02-11-2004, 12:00 PM   #8
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
 
  


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
Ubuntu Fluxbox simple question, simple answer? generallimptoes Linux - Software 3 09-26-2005 02:03 PM
Simple Questions...Hopfully Simple Answers. caps_phisto Linux - General 3 12-21-2004 12:40 PM
problems creating a simple bootable cd to perform a simple task czarherr Linux - Software 1 11-11-2004 05:22 AM
Installing Programs - A simple question from my simple mind jmp875 Linux - Newbie 6 02-18-2004 09:03 PM
simple question seeking simple answer enzo250gto Linux - Newbie 1 10-27-2001 04:08 AM

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

All times are GMT -5. The time now is 07:13 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
Open Source Consulting | Domain Registration