User Tools

Site Tools


docu:csheet:sysadm:script:bash:get_script_path

Get directory of the executed script in bash


Simple, straight forward:

SCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1; pwd -P )"
docu/csheet/sysadm/script/bash/get_script_path.txt · Last modified: 2020/09/16 13:37 by admin