-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Paolo Pantaleo wrote: > I have a script in something like > > /media/sda1/backup/script.sh > > 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 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 iD8DBQFEle3fS9HxQb37XmcRAvZHAJ46PsApx+Usr7MegF3c4e+Cp9hwbgCgmKZj cmV08vSi/xB9TfqzaAKtK5s= =DA+S -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]