The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 10-26-2007
konark konark is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 14
Red face To call/execute a shell script from a shell script

Hi ,

I have 4 shell scripts
a.ksh
b.ksh -> depends on a.ksh success -> log into b.log
c.ksh -> depends on b.ksh success -> log into c.log
d.ksh -> depends on c.ksh success -> log into d.log


I will have to write main.ksh
(
execute a.ksh , log into a.log
if a.ksh= success, execute b.ksh , log into b.log ,else exit
if b.ksh= success, execute c.ksh , log into c.log ,else exit
if c.ksh= success, execute d.ksh , log into d.log ,else exit
)