Is it possible to find out the full path to the script that is currently executing in KornShell (ksh)?
i.e. if my script is in /opt/scripts/myscript.ksh
/opt/scripts/myscript.ksh
This is what I did:
if [[ $0 != "/"* ]]; then DIR=`pwd`/`dirname $0` else DIR=`dirname $0` fi