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 07-07-2007, 12:29 AM   #1
bilal_linux
LQ Newbie
 
Registered: Mar 2007
Posts: 15

Rep: Reputation: 0
executing multiple files (one after another) through shell script


Hi,

i have about 10 different shell scripts (.sh files) to execute in a way that the second should start after the first one is completed and so on. can this be achieved through a shell script. so far, i have been doing this donkey work manually but i think there should be a better way to automate this process. i have the following files

mode1.sh
mode2.sh
.
.
.
.
mode10.sh

i want to execute these files in a sequence so that mode1 executes first and when it is finished, it releases all the resources and the mode2 starts and so on..

Any help would be highly appreciated.

Bilal
 
Old 07-07-2007, 01:31 AM   #2
lakris
Member
 
Registered: Sep 2004
Location: Stockholm, Sweden
Distribution: Ubuntu, RedHat, SuSe, Debian, Slax
Posts: 102

Rep: Reputation: 15
Try
Code:
#!/bin/sh
mode1.sh
mode2.sh
 
  


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
Executing a shell script command!! vishamr2000 Programming 4 08-15-2005 12:33 AM
executing a script in multiple subdirectories jerryfreak Linux - Newbie 1 04-19-2005 08:34 PM
Need help with shell script - renaming multiple files NiallC Linux - Newbie 25 07-04-2004 10:45 AM
executing shell script on apache nooodles Linux - General 1 06-29-2004 01:51 AM
executing a shell script from C llama_meme Programming 2 04-01-2002 09:10 PM


All times are GMT -5. The time now is 06:22 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration