Article View: comp.os.linux.admin
Article #28Re: How would a script recognize Linux?
From: bill davidsen
Date: Thu, 02 Mar 1995 19:19
Date: Thu, 02 Mar 1995 19:19
19 lines
1680 bytes
1680 bytes
In article <5718@artcom0.north.de>, Peter Funk <pf@artcom0.north.de> wrote: | One precaution must be taken: SCO Unix has a broken uname program: | 'uname -s' returns the node name rather than "SCO" or "Unix", so in | order to adjust a script to recognize such a weird platform also, Close! I think -n is the node name and -s is the system name (don't ask why there are two... -s system name -n node name -m machine hardware name This is why I suggested looking for /vmlinux first, it at least won't give you misleading information. I really *can* believe that someone who was using SCO because they had to would name their machine 'linux' and break the uname method. Of course I know people running Linux who wish they had some of the SCO features, too, so that cuts both ways.
Technical Details
Message-ID:
<3j55np$8ee@usenetw1.news.prodigy.com>Path:
arc1-ca.pugleaf.net!nntp.gmd.de!stern.fokus.gmd.de!ceres.fokus.gmd.de!zib-berlin.de!news.mathworks.com!newshost.marcam.com!uunet!in1.uu.net!prodigy.com!not-for-mailReferences:
<3il1e2$6fq@usenetw1.news.prodigy.com> <D4KrMG.LFA@erie.ge.com> <5718@artcom0.north.de>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 100df9,650d05e30da3de92 X-Google-Attributes: gid100df9,public X-Google-Thread: 1122ea,27188ece54367802 X-Google-Attributes: gid1122ea,public X-Google-ArrivalTime: 1995-03-02 11:19:21 PST Path: arc1-ca.pugleaf.net!nntp.gmd.de!stern.fokus.gmd.de!ceres.fokus.gmd.de!zib-berlin.de!news.mathworks.com!newshost.marcam.com!uunet!in1.uu.net!prodigy.com!not-for-mail From: davidsen@tmr.com (bill davidsen) Newsgroups: comp.os.linux.admin,biz.sco.general Subject: Re: How would a script recognize Linux? Date: 2 Mar 1995 14:19:21 -0500 Organization: TMR Associates, Schenectady NY Lines: 19 Sender: davidsen@usenety1.news.prodigy.com Message-ID: <3j55np$8ee@usenetw1.news.prodigy.com> References: <3il1e2$6fq@usenetw1.news.prodigy.com> <D4KrMG.LFA@erie.ge.com> <5718@artcom0.north.de> NNTP-Posting-Host: loopback.news.prodigy.com