Hi,
I need to write a peice of code which is different in Linux AS2.1 and AS3.0. Both are 32 bit m/cs. How can i identify it??
Thanks in adv,
Molu
Hi,
I need to write a peice of code which is different in Linux AS2.1 and AS3.0. Both are 32 bit m/cs. How can i identify it??
Thanks in adv,
Molu
What exactly are AS and m/c?
If you understand what you're doing, you're not learning anything.
I'm guessing m/c is microcontroller. Look at /proc/cpuinfo to see if there's a processor difference?
AS refers to advance server
What does the processor have to do with Linux?
u can use :
system( " uname -o ");
the system call lets u execiute shell commands inside ur c programs.. check the man pages for "uname" and its options..
i hope this solves ur problem
Basically he's looking to tell the difference between two Red Hat (I'm assuming) operating system versions.
On RedHat, I believe if you read from /proc/version you might find a way to figure out what OS you're running....
Your mileage may vary of course.
Last edited by fgw_three; 06-27-2006 at 09:15 AM.
Mr. Blonde: You ever listen to K-Billy's "Super Sounds of the Seventies" weekend? It's my personal favorite.