Re: If you're using linux can you run this command please?

new topic     » goto parent     » topic index » view thread      » older message » newer message
jmduro said...

Basically, they look for DISTRIB_RELEASE, DISTRIB_CODENAME and DISTRIB_DESCRIPTION, then for one specific release file per distibution, which name can end with -release or -version (they specify the exact name per each distribution).

For Slackware they use pkgtool, for Caldera OpenLinux they use /etc/issue. There is no unique solution. A big switch case would better fit all the needs, with one case per distribution.

Awesome! I'll integrate the OS check into the project as soon as I get home. And I've created a github for the project.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu