- or download this
$ pwd -L
/discover/nobackup/mathomp4
$ pwd -P
/gpfsm/dnb44/mathomp4
- or download this
$Bin - path to bin directory from where script was invoked
$RealBin - $Bin with all links resolved
- or download this
$ cd $HOME
$ cat /discover/nobackup/mathomp4/MyTestScript/bin/test.pl
...
$ /discover/nobackup/mathomp4/MyTestScript/bin/test.pl
Using Bin: /gpfsm/dnb44/mathomp4/MyTestScript
Using RealBin: /gpfsm/dnb44/mathomp4/MyTestScript