Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to execute Multiple .sh files from a single .sh file

 
karthik Suryanarayanan
Ranch Hand
Posts: 121
Java Opera Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,

I want to run multiple .sh files from a single .sh file . I am new to Linux and want to learn more here. So could you guys guide me with some reference sites and materials for learning linux commands .

I have three files

A.sh
B.sh
C.sh

In C.sh , i will call


So is this enough or should i need to use any commands for performance related issues.
 
kuchiki byakuya
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
that should be correct. also make sure you have your shebang ( #!/bin/bash ) in A.sh and B.sh and make sure they are executable.
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
to performance:
If more shells might be executed simultaneously, you may start them in parallel:

 
karthik Suryanarayanan
Ranch Hand
Posts: 121
Java Opera Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much Kuchiki and Stefan. Your comments are valuable to me.I tried those. It was working good. Thank you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic