Re: Determinate the directory whithin a script
-----BEGIN PGP SIGNED MESSAGE-----
Paolo Pantaleo wrote:
> 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
If you use udev, then you can give the device a descriptive name
(based on things like the serial number of the hard drive).
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-----