Call a shell script from another shell script

Shell script has .sh format. This document shows how to call a shell script from another shell script .
This may be useful when you you need to call multiple shell scripts at same time. So while running a main shell, you can call others one by one.

Suppose my target script folder is

Script_Path=$HOME/Monthly_Reconciliation

nohup bash $Script_Path/exec_insert_process_status.sh 

If you would like to write the log of this command to a file  you can write it as

nohup bash $Script_Path/exec_insert_process_status.sh  > log_file.log

If you would like to add any more comment in that log do it by

"add more cooments to earlier log " >> log_file.log

Comments

Popular posts from this blog

Introduction To Oracle10g

Insert

Except