I have two scripts in undermentioned folders:
- /folder_aaa/bbb/ddd/1.sh
- /folder_aaa/ccc/eee/2.sh
I would like to run 2.sh script from 1.sh script. How should I write a path to 2.sh script ?
1.sh:
DIR=/../../ccc/eee/
SCRIPT_NAME="2.sh"
${DIR}/${SCRIPT_NAME}
Is above code (especially dir referention) ok ?
/unless you plan on referencing a file within that directory: OK:thing=/usr/bin/echo, NOT OK:thing=/usr/bin/, OK:thing=/usr/bin