Possible Duplicate:
How can I get distribution name and version number in a simple shell script?How can I get distribution name and version number in a simple shell script?
Given a shell, how can I identify the variant of Unix/Linux that is running on a remote server?