Review your favorite Linux distribution.
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-20-2010, 02:00 AM   #1
Registered: Nov 2009
Posts: 30

Rep: Reputation: 15
Running two files at the same time

For example, i have two bash script files namely, "" and "". Both the files contain some commands to run, how can i actually run both files at the same time, instead of running the file one by one?
Old 02-20-2010, 02:04 AM   #2
LQ Guru
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555
Sounds like you would want to fork at least the first one, off into the background:

shell$ & <-- the '&' will fork the process to the background, returning execution to the next line..

# next line:

shell$ [&] < note the '&' is optional here -- use it, or not.
Old 02-20-2010, 02:09 AM   #3
Registered: Nov 2009
Posts: 30

Original Poster
Rep: Reputation: 15
ok 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
Problem running .o files after they are compiled from .c files in fedora core 1 Starrie Linux - Newbie 1 03-05-2009 09:24 PM
problem in mounting cdrom(audio files running but not reading data files) amit_usual Linux - Newbie 7 12-29-2007 06:52 AM
Time is running out for me. ccalvin12 Linux - Software 1 08-05-2005 08:18 AM
Running 2 OS at the same time NeoSpawn Linux - General 18 06-17-2004 06:42 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:23 PM.

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