Hello
Do you know in C language what's the better way to get the info like the output by lsb_release?
$ lsb_release -cd
Description: Ubuntu 22.04.3 LTS
Codename: jammy
i know there is system call. but is there a native way?
On Tue, Nov 12, 2024 at 10:08:18AM +0000, Corey wrote:
Hello
Do you know in C language what's the better way to get the info like the output by lsb_release?
$ lsb_release -cd
Description: Ubuntu 22.04.3 LTS
Codename: jammy
i know there is system call. but is there a native way?
I don't think there is a special system call for that. Have you had a
look at the command itself? It is a shell script, and looks pretty
pedestrian to me (at first sight, granted).
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 147:56:15 |
Calls: | 10,383 |
Calls today: | 8 |
Files: | 14,054 |
D/L today: |
2 files (1,861K bytes) |
Messages: | 6,417,737 |