Afficher un message
Vieux 14/03/2008, 10h40   #2
Cyrus Kriticos
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Finding absolute path of a script from within

Jeenu wrote:
>
> I'm wondering what would be the best way to get the absolute path of
> script, within it. 'basename', 'dirname' and 'pwd' don't always give
> the same output, since it depends on where you execute the script
> from. Any thoughts?


echo $PWD

--
Best regards | Be nice to America or they'll bring democracy to
Cyrus | your country.
  Réponse avec citation
 
Page generated in 0,04315 seconds with 9 queries