Re: Determinate the directory whithin a script
-----BEGIN PGP SIGNED MESSAGE-----
Paolo Pantaleo wrote:
> 2006/6/18, Paolo Pantaleo <firstname.lastname@example.org>:
>> I have a script in something like
>> since sda1 could be also sda2 or anything, I want to determintate at
>> run-time what is the directory in which the script is located, how can
>> I do?
>> pwd doesn't work, since I cuold call the script from some other direcotry
>> if you have a minute to spend please visit my photogrphy site:
> $0 is just the command line... maybe `pwd` + $0 could do the work...
> but not if the scipt is in the PATH...
> I can't use udev... but maybe I'll read something about it
> Well for now I will assume that the script is launched only from
> the directory in which it is located... it seems the easyer way.
How about something like:
Ron Johnson, Jr.
Jefferson LA USA
Is "common sense" really valid?
For example, it is "common sense" to white-power racists that
whites are superior to blacks, and that those with brown skins
are mud people.
However, that "common sense" is obviously wrong.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----