Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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)
 
PREVIOUS NEXT
Tagged: #source #script #path
ADD COMMENT
Topic
Name
1+1 =