more on identifying the system a program is running on...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I asked recently about using /etc/redhat-release and got some useful answers.
My thanks to all who replied.

Now a slight variant:

Can anyone suggest some resource that a PROGRAM (compiled C program) can
examine while running to find out what platform it is runninng on ?

Things that come to mind include:
1. output of uname to see if the kernel version contains "elX" where X
is a digit, such as el4, el5, etc., identifying RHEL-4, RHEL-5, etc.
2. do the same thing by exmining the filename of the kernel (if I knew
   how to find the file for the currently running kernel, that is.

can anyone suggest any other checks I could do?

Thanks again!

-- 
---- Fred Smith -- fredex@xxxxxxxxxxxxxxxxxxxxxx -----------------------------
                    The Lord detests the way of the wicked 
                  but he loves those who pursue righteousness.
----------------------------- Proverbs 15:9 (niv) -----------------------------
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux