Page 1 of 1

Script do start 2 programs

Posted: Tue Nov 20, 2012 4:55 pm
by FidbecK
I want to start two programs Apache and MySQL.
Can I create a script to start those two programs instead of going to the Terminal and start one and than the other.

Script to start two programs at once

Posted: Wed Nov 21, 2012 11:59 am
by FidbecK
Hi there

I want to create a script in Nadia to start 2 programs at once.
How do I do that?
Thanks

Re: Script to start two programs at once

Posted: Wed Nov 21, 2012 1:16 pm
by xenopeek
Split from http://forums.linuxmint.com/viewtopic.php?f=90&t=91155 and moved here. See the forum rules; new questions deserve new topics and don't reply to support requests older than six months. Thanks :)

Depends on what you mean. Assuming you want to start a program Foo and a program Bar from one script, find how you would start the programs from the command line and then write a script such as:

Code: Select all

#!/bin/bash

(foo </dev/null &>/dev/null &)
(bar </dev/null &>/dev/null &)
You can find how you would start the programs from the command line by looking at the entry in your menu (at least on Cinnamon and MATE you can edit menu entries to look at what command is run for starting the applications).

Re: Script do start 2 programs

Posted: Thu Nov 22, 2012 3:22 pm
by norm.h
Have a look here: http://forums.linuxmint.com/viewtopic.php?f=42&t=86813
Item 1b.
Is this what you're looking for?