LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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-04-2004, 06:20 PM   #1
pH*
Member
 
Registered: Nov 2003
Distribution: Slackware 10
Posts: 40

Rep: Reputation: 15
Starting progs from the konsole


Very new to linux, although at a previous job I had to work with Unix, so I don't consider myself completely helpless... just impatient.

I'm really taken with the idea of starting programs from the Konsole (assuming "terminal" and "command line" are synonyms here?), but I notice that some, if not all of the progs I'm starting this way are bound to the Konsole window itself, so that if I start 'xmms' to listen to music, the Konsole window must stay open also, or else xmms closes as well. Also, it seems this ties up the Konsole itself also, since while the program is running, the Konsole is unusable and I have to call up another one to do any fun stuff.

Wondering how to get around this, and what this behavior is called.
 
Old 01-04-2004, 06:24 PM   #2
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Houston, TX
Distribution: Arch
Posts: 1,380

Rep: Reputation: 47
how about adding a quick launch applet to your tool bar, then u can just type the prog name in there
 
Old 01-04-2004, 06:34 PM   #3
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 46
Add an amperstand to the end of a command such as

xmms &
 
Old 01-04-2004, 06:35 PM   #4
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Houston, TX
Distribution: Arch
Posts: 1,380

Rep: Reputation: 47
or that
 
Old 01-04-2004, 06:45 PM   #5
pH*
Member
 
Registered: Nov 2003
Distribution: Slackware 10
Posts: 40

Original Poster
Rep: Reputation: 15
yep, the & is what i was getting at. thx.

just realized there's a konsole handbook under the help menu, so it might help to read that also, huh?
 
Old 01-04-2004, 07:20 PM   #6
Jose Muņiz
Member
 
Registered: Jul 2003
Location: Mexico City
Distribution: Slackware 9.1, SuSE 9.1
Posts: 248

Rep: Reputation: 32
When you start a process under a console, the new process is considered a subprocess (child process) of the first one. If the parent process is killed, the subprocess is usually killed, too.

The & will send that process to the background. You can get the same result by typing Ctrl + Z and then sending the stopped process to the background with "bg".
 
Old 01-04-2004, 07:37 PM   #7
pH*
Member
 
Registered: Nov 2003
Distribution: Slackware 10
Posts: 40

Original Poster
Rep: Reputation: 15
appears i spoke too soon.

hmm... ya know, i remember using the & at work before, and being able to kill the terminal the subprocess was attached to without losing the subprocess, and typing the & in now allows me to continue using the terminal (same with stopping the process [CTRL-Z + bg]), but neither option allows the subprocess to continue running on its own if i close the terminal that called it.

in both instances closing the terminal closes the program (subprocess [in this case xmms]).

any thoughts as to why? i feel like this shouldn't be happening like this.
 
  


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
progs on mandrake 9.2 Steph00 Linux - Newbie 14 09-15-2004 05:10 PM
Finally got KDE 3.2.2 installed, but now have a font error when starting Konsole blk96gt Slackware 5 08-03-2004 02:29 AM
KDE: error when starting Konsole georg9 Slackware 9 08-07-2003 03:47 PM
A Few progs i need.. Gnute Linux - Software 9 07-01-2003 12:26 PM
Dj progs AkumaLoka Linux - Software 2 09-30-2002 08:18 AM

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

All times are GMT -5. The time now is 04:04 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration