LinuxQuestions.org
Visit Jeremy's Blog.
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 10-28-2010, 07:07 AM   #1
officially.rahul
LQ Newbie
 
Registered: Oct 2010
Posts: 2

Rep: Reputation: 0
How to execute file in different process on ubuntu?


Means I want to execute two executables one by one at the same time as shown below:

execute1
execute2

these are two executables...... but the second one is executed after 1st one is closed ...... is there any way two execute both.....

One way is

gnome-terminal -e execute1
execute2

but here i want to hide the terminal window..........
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 10-28-2010, 07:27 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Put the commands in a script, you can call the script from a launcher.
 
Old 10-28-2010, 07:42 AM   #3
fbobraga
Member
 
Registered: Jul 2010
Location: São Paulo - Brasil
Distribution: Debian 7 / Crunchbang 11
Posts: 229

Rep: Reputation: 41
use the "&" character in the end of statements (to run it in backgroud):
Code:
$ execute1 &
$ execute2 &
* you can list the background process with the jobs command, and it bring to foreground with the fg <job_id> (and send it back to background pausing/suspending it with CTRL+Z and issuing a bg command - more info: http://linuxreviews.org/beginner/jobs/ -> http://www.comptechdoc.org/os/linux/...processes.html)

* it's not ubuntu specifc

Last edited by fbobraga; 10-28-2010 at 07:47 AM.
 
2 members found this post helpful.
Old 10-29-2010, 12:49 PM   #4
officially.rahul
LQ Newbie
 
Registered: Oct 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks @fbobraga it worked...........
 
  


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
Failed to execute child process"abrowser"(no such file or directory) error sumaeg Linux - Newbie 4 02-06-2013 11:55 PM
Bash- :cannot execute binary file (Ubuntu VM on ESXI server) maas187 Linux - Virtualization and Cloud 17 04-03-2010 09:25 AM
Failed to execute child process "realplay" (No such file or directory) bobevt Linux - Newbie 3 09-16-2009 04:57 PM
Failed to execute child process? une Linux - Newbie 2 09-20-2006 09:36 PM
problem with binding process and than execute another process chapa Programming 0 08-27-2003 03:47 AM


All times are GMT -5. The time now is 10:52 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