Answers for "source script path"

0

source script path

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 (this line should be inside main script)
Posted by: Guest on March-30-2022

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language