Script Script Locatin

mention these two line inside your main script, 

SCRIPT=`realpath $0`
SCRITPATH=`dirname $SCRIPT`

other script should be in the same folder

to use them,

bash $SCRITPATH/your_sub_script.sh (in main script)


Hutch Polecat