LinuxQuestions.org
Review your favorite Linux distribution.
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 04-29-2005, 06:03 AM   #1
paraiso
Member
 
Registered: Apr 2005
Distribution: Fedora Core 4
Posts: 88

Rep: Reputation: 15
Question Start programs from a shell script


How could I start at the same time several programs using a shell script ?

Thanks !
 
Old 04-29-2005, 06:12 AM   #2
vishamr2000
Member
 
Registered: Aug 2004
Posts: 210

Rep: Reputation: 31
Hi,

You can put the '&' at the end of the of each program you wish to start.

The '&' actually runs the progra inthe background.

Hope it helps...

Regards,
Visham
 
Old 04-29-2005, 06:27 AM   #3
paraiso
Member
 
Registered: Apr 2005
Distribution: Fedora Core 4
Posts: 88

Original Poster
Rep: Reputation: 15
Thank you vishamr2000 I just tried your suggestion and it works perfectly. I have some of those programs which need to be started as root. Is that possible to do that from the shell script ?
 
Old 04-29-2005, 09:00 AM   #4
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 63
Yes. Enter 'sudo <your command>', and configure sudo to allow the right user to execute the right commands as root without entering a password.

Yves.
 
Old 04-29-2005, 09:41 AM   #5
paraiso
Member
 
Registered: Apr 2005
Distribution: Fedora Core 4
Posts: 88

Original Poster
Rep: Reputation: 15
Merci Yves! I 'm gonna have a look a bit closer to see how it gets configured.
 
  


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
adsl-start problem in shell-script frgtn Linux - Networking 2 04-16-2005 03:29 PM
Shell Script to Start NVU Dooley Linux - Software 5 07-13-2004 07:12 PM
shell script beginer run programs spoody_goon Programming 2 03-27-2004 07:12 PM
Help with Howto start a shell script at boot draven Linux - Newbie 7 03-03-2004 11:20 PM


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