From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1020c6,5120b503df4ed78f X-Google-Attributes: gid1020c6,public X-Google-Thread: 1012a6,5120b503df4ed78f X-Google-Attributes: gid1012a6,public X-Google-Thread: 11035d,5120b503df4ed78f X-Google-Attributes: gid11035d,public X-Google-Thread: 1164f8,5120b503df4ed78f X-Google-Attributes: gid1164f8,public X-Google-Thread: 1070f0,5120b503df4ed78f X-Google-Attributes: gid1070f0,public X-Google-Thread: 115614,5120b503df4ed78f X-Google-Attributes: gid115614,public X-Google-Thread: 10b612,5120b503df4ed78f X-Google-Attributes: gid10b612,public From: chris@rivers.dra.hmg.gb (Christopher Samuel) Subject: Re: Portable startup files question.. Date: 1995/06/02 Message-ID: <3qn2j0$3dj@phoenix.dra.hmg.gb>#1/1 X-Deja-AN: 103619034 distribution: inet references: <3pndb7$1670@rs18.hrz.th-darmstadt.de> <3pqfbf$ds0@elron2.elron.net> followup-to: comp.unix.admin content-type: text/plain; charset=US-ASCII organization: Open Software Systems Group, DRA Malvern, UK mime-version: 1.0 newsgroups: comp.unix.solaris,comp.unix.ultrix,comp.unix.admin,comp.unix.shell,comp.unix.aix,comp.sys.sun.admin,comp.sys.dec /* Followups redirected to comp.unix.admin */ In article <3pqfbf$ds0@elron2.elron.net> of comp.unix.admin, Ido Sarig doodled: ^^^ /* awooga awooga - broken news software alert :-) */ > No they don't. Use `uname -a` and a simple awk script to get the 3rd field > of the output, which is 4.x on SunOS and 5.x on Solaris. Remember that not all systems have uname, for example NeXTstep has it missing (although it does have the uname(2) call in it's POSIX libraries). Also remember that not all systems uname work the same way, for instance SCO's returns the hostname for "uname -s" whereas the rest of the world seems to return the operating system name (typical really). cheers, Chris -- Christopher Samuel, Open Software Systems Group, chris@rivers.dra.hmg.gb N-115, Defence Research Agency, St Andrews Road, Great Malvern, England, UK DISCLAIMER: I write only for myself, not for DRA. Phone: +44 1684 894644 "You can't write space opera in a vacuum" --- Iain Banks