How to write shell script to start some programs?

I'm making a shell script that will start bunch on programs that l mostly use. I wants commands for them the programs are- 1. skype 2. sublime-text 3. google-chrome 4. Beyond-comopare 5. scudCloud 6. Lampp

i've found some of them-

#! /bin/sh sudo service mysql stop sudo /opt/lampp/lampp start sudo /usr/bin/skype start sudo /usr/bin/subl start sudo google-chrome 

I know the application can be set from startup application also but i need to run some command also.

After running command bash shell script will run.

9

2 Answers

Your script with further two entries:

$ cat launchscript.sh #! /bin/sh sudo service mysql stop sudo /opt/lampp/lampp start sudo /usr/bin/skype start sudo /usr/bin/subl start sudo google-chrome sudo scudcloud sudo bcompare 

Make it executable:

sudo chmod +x launchscript.sh 

Run it:

./launchscript.sh 
3

Put the script to run all the services inside init.d directory to make them run at startup.

3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like