villemos
May 16th, 2003, 02:12 AM
In a csh script (and yes I know csh can be bad for your health) I would like to know the position of the script itself, i.e. the full path to the script.
'pwd' doesn't work as the script can be called from somewhere different from its location. Passing the command line won't work either, as the script can be run locally (i.e. commandline './[script]'). And I don't wanna pass the path as a parameter.
So how can I get the full path to the script?
Thanks,
Villemos.
'pwd' doesn't work as the script can be called from somewhere different from its location. Passing the command line won't work either, as the script can be run locally (i.e. commandline './[script]'). And I don't wanna pass the path as a parameter.
So how can I get the full path to the script?
Thanks,
Villemos.