[plt-scheme] OS version?

From: Jon Rafkind (workmin at ccs.neu.edu)
Date: Fri Dec 9 00:04:56 EST 2005


Eli Barzilay wrote:

>Does anyone know a portable way of getting the distribution and
>version of a linux machine?  Specifically, I don't know of any way to
>get the version of Debian/Ubuntu machines.
>
>(The best hack I found so far is pretty bad: "cat /etc/issue.net"...)
>
>  
>
I have looked for such things and not found a way. I assume you will go 
down the "try various hacks and see what works" route so heres the 
gentoo way:

~ $ cat /etc/gentoo-release



Posted on the users mailing list.