Link to home
Create AccountLog in
Avatar of new_perl_user
new_perl_user

asked on

how to call a shell script from another shell script

Hi,
 How to call a shell script from another shell script in the loop.

#!/bin/bash

for batch in `ls  /usr/qa/qalogs`  ;  do
    for book in `ls  /usr/qa/qalogs/${batch}`  ;  do
        cp     /usr//qalogs/${batch}/${book}/${book}_DBload.txt       /usr/qa/summary/DBload.txt
        <call your script here to load the file >
    done
done
ASKER CERTIFIED SOLUTION
Avatar of Steve Tempest
Steve Tempest
Flag of Australia image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of genialdinesh
genialdinesh

You can just type the script name to call it.
Avatar of new_perl_user

ASKER

Hi,
 
 Thank you so much it is working.