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
How the script was called is stored in the variable $0. You can use readlink to get the absolute file name:
readlink
readlink -f "$0"