From: Andreas K. <and...@ac...> - 2006-11-03 19:32:29
|
> Well the code abouve works on all our boxes which include redhat, debian, > suse, etc. And on the architectures. Seems like the following would work > more generally (needs tweaking for /lib64): > > regexp {libc-[0-9]+\.[0-9]+} [glob /lib/libc-*] vers > > Lots less code and given that our stuff seems to work I suspect it's > safe. Anyone see any reason why that wouldn't work? My paranoia about file names getting manipulated to provide misleading version info. -- Andreas Kupries <andreask@ActiveState.com> Developer @ http://www.ActiveState.com Tel: +1 778-786-1122 |