Sponsored Content
Full Discussion: Find RedHat version.
Top Forums UNIX for Advanced & Expert Users Find RedHat version. Post 302152415 by amirvosko on Wednesday 19th of December 2007 07:43:56 PM
Old 12-19-2007
Find RedHat version.

How can I find out with a C program, on which RedHat version the program is being ran ? I do know through compilation variables that I'm on RedHat but so far cannot find out which one.

Currently the closest I got was to invoke an ls or cat through syscall for the release or motd files.

Thanks:
Amir
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Redhat linux version

Guys How do i know the version of linux (Redhat) on one of our systems..Thanks in advance..The uname -r gives 2.4.18-0.13..Is it the kernel version (3 Replies)
Discussion started by: sssow
3 Replies

2. Linux

Linksys WPC11 Version 4 (NOT FOR REDHAT!)

I just purchased a Linksys WPC11 Version 4 wireless PCMCIA card, and am looking for the device driver for it. Apparently, as opposed to Version 1-4, it uses a RealTek 8180 chipset. However, the kernel module which Linksys released does not work on any other distribution EXCEPT for Redhat Linux.... (0 Replies)
Discussion started by: Farhan
0 Replies

3. Linux Benchmarks

Dual Xeon 2.6, RedHat EL 4 ES, up to latest release version. 2.6.9 kernel

============================================================== BYTE UNIX Benchmarks (Version 3.11) System -- Linux linux.hhc.ac.uk 2.6.9-11.ELsmp #1 SMP Fri May 20 18:26:27 EDT 2005 i686 i686 i386 GNU/Linux Start Benchmark Run: Wed Jul 6 15:06:07 BST 2005 1 interactive users.... (2 Replies)
Discussion started by: Garp
2 Replies

4. UNIX for Dummies Questions & Answers

Redhat linux command to check Version

Hi All, I need to know RedHat linux version installed on a different servers. I know uname -a or /proc/version Is any other command to know the Linux version???? When we telnet to any of the Linux server, the version shows very clearly like Red Hat Enterprise Linux ES release 3 (Taroon... (1 Reply)
Discussion started by: bache_gowda
1 Replies

5. Red Hat

find redhat

how to find out the Red hat version using uname -a command. (7 Replies)
Discussion started by: sudhiroracle
7 Replies

6. Red Hat

Redhat Enterprise version 4 RHEL4 patches

Hi, I would like to know if should i patch my system and sshd based on the version that i have here below: cat /etc/redhat-release Red Hat Enterprise Linux ES release 4 (Nahant Update 5) ------------ uname -a: redhat kernel version and type (64-bit or not) Linux server2 2.6.9-55.ELsmp... (2 Replies)
Discussion started by: lamoul
2 Replies

7. Red Hat

Differences in the version of RedHat linux 5.2 and 9.0.

hi , Can anybody please let me know the difference in the version of RedHat linux 5.2 and 9.0. Will there be any difference if i execute the script in RedHat linux 9.0 insead of RedHat linux 5.2? Thanks in Advance. (7 Replies)
Discussion started by: flamingo_l
7 Replies

8. UNIX for Dummies Questions & Answers

How to get Xconsole of Redhat 5 version.

Hi How would i get xconsole of redhat5 linux machine. Following is the distribution detail. # lsb_release -a LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch Distributor ID: RedHatEnterpriseServer Description: Red Hat Enterprise Linux Server release 5.5... (1 Reply)
Discussion started by: pinga123
1 Replies

9. Red Hat

Does devlable support RedHat Linux 5.5 or later version?

Dear Guru, Last time when I install ORACLE RAC with ASM, I have use udev to mapping the raw device. Someone told me that "devlable" is good tool to achieve that. But I can find the rpm package for Linux 5.5. Look devlable only for x86 system? Am I right? What is the different between: udev... (0 Replies)
Discussion started by: devyfong
0 Replies

10. Red Hat

RedHat version in rpm spec files

Hi In opensuse we have this nice version control variable I use much when designing rpm spec files: rpm --showrc | grep suse_version %if 0%{?suse_version} > 0 && 0%{?suse_version} < 1700 -14: suse_version 1140But I do not find anything close to this in rhel/centos The only way... (0 Replies)
Discussion started by: mortenb
0 Replies
INVOCATION_NAME(3)					     Linux Programmer's Manual						INVOCATION_NAME(3)

NAME
program_invocation_name, program_invocation_short_name - obtain name used to invoke calling program SYNOPSIS
#define _GNU_SOURCE /* See feature_test_macros(7) */ #include <errno.h> extern char *program_invocation_name; extern char *program_invocation_short_name; DESCRIPTION
program_invocation_name contains the name that was used to invoke the calling program. This is the same as the value of argv[0] in main(), with the difference that the scope of program_invocation_name is global. program_invocation_short_name contains the basename component of name that was used to invoke the calling program. That is, it is the same value as program_invocation_name, with all text up to and including the final slash (/), if any, removed. These variables are automatically initialized by the glibc run-time startup code. CONFORMING TO
These variables are GNU extensions, and should not be used in programs intended to be portable. NOTES
The Linux-specific /proc/[number]/cmdline file provides access to similar information. SEE ALSO
proc(5) COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at https://www.kernel.org/doc/man-pages/. GNU
2017-09-15 INVOCATION_NAME(3)
All times are GMT -4. The time now is 05:21 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy