[ut2004] Cache installer

Thomas Otto 3.1415926535897932384626433832 at gmx.net
Tue Jun 14 17:03:17 EDT 2005

> I was thinking I could have it su -c '/path/to/current_script' and have it excecute
> itself, but i dont know how to find the current path and file name from inside a script
> either.

As in e.g. c in shell the first ("zeroth") argument also contains the
path to the executable, so use su -c "$0" - note "" not '', the latter
would prevent $0 from being interpreted, parenthesis to deal with spaces
in the filename.


More information about the ut2004 mailing list