LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-29-2006, 05:46 PM   #1
webreake
LQ Newbie
 
Registered: Mar 2006
Posts: 6

Rep: Reputation: 0
shell script launch two apps


hi
my problem is that i want to launch two apps at the same time just running a shell script
I did a script but only executes the first command(eclipse) and stops until i close it then the second command is executed(geronimo), but i want the two commands start at the same time.

How can i do this ?
 
Old 03-29-2006, 06:02 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
You can start an application and put it into the background with the '&' symbol:
Code:
#!/bin/sh
eclipse &
gvim &
Does that do what you wanted to do?
 
Old 03-30-2006, 11:20 PM   #3
webreake
LQ Newbie
 
Registered: Mar 2006
Posts: 6

Original Poster
Rep: Reputation: 0
yes thats exactly what i want
thanks
Do you know how to do the same thing but with a .bat file ?
 
Old 03-30-2006, 11:59 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,355

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Is this a Windows/DOS system?? If so, guess you could try installing Cygwin (Unix shell style env).
 
Old 04-01-2006, 07:29 PM   #5
webreake
LQ Newbie
 
Registered: Mar 2006
Posts: 6

Original Poster
Rep: Reputation: 0
no,
i am using suse linux i was just curious
 
  


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
help on shell script as a wrapper to launch default programs according to input file daveiro Programming 2 11-24-2005 04:20 PM
Unable to launch X apps with non login root shell kc00l Slackware 2 11-24-2003 03:32 AM
Shell script to kick off two apps at once cleaner416 Programming 4 11-05-2003 08:55 PM
Menu troubles: apps do not launch; unable to add apps hfinger Mandriva 1 08-22-2003 04:49 AM
can't launch java app from shell script... LonAllen Linux - Newbie 0 07-07-2003 08:37 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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