Help answer threads with 0 replies.
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 02-18-2005, 06:08 PM   #1
Registered: Jan 2005
Location: Earth
Distribution: Fedora
Posts: 40

Rep: Reputation: 15
Scripting help. How to launch 2+ programs simultaneously.

I'm trying to run a script that contains 3 executables. When I run the script, it launches the first executable but I have to close that 1st executable before the 2nd one launches. Only when I close the 2nd does the 3rd launch, etc.

How can I launch all 3 at once?

Old 02-18-2005, 06:58 PM   #2
Registered: Jun 2003
Location: Florence, SC
Distribution: Gentoo i386
Posts: 180

Rep: Reputation: 30
Append an ampersand (&) symbol to the end of all the commands; That makes them run in the background. You can also use that trick when you're using the shell by hand. In fact, it's generally a good idea whenever you're going to lauch something that runs in a GUI window instead of in the shell.
Old 02-18-2005, 07:14 PM   #3
Registered: Jan 2005
Location: Earth
Distribution: Fedora
Posts: 40

Original Poster
Rep: Reputation: 15
Perfect. Thanks!


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
auto launch programs at login desmondtm Linux - Newbie 1 12-01-2005 05:51 PM
can't launch programs as root Error1312 SUSE / openSUSE 3 02-10-2005 12:28 PM
programs attempt to launch twice mgmcc Linux - Newbie 13 01-10-2005 10:14 AM
how to launch programs on internet connect? zeedoo Linux - Software 4 07-12-2004 05:08 PM
How to launch new programs ? mdcooper Linux - Newbie 3 03-04-2003 11:34 AM > Forums > Linux Forums > Linux - Newbie

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