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: 115614,5120b503df4ed78f X-Google-Attributes: gid115614,public X-Google-Thread: 1164f8,5120b503df4ed78f X-Google-Attributes: gid1164f8,public X-Google-Thread: 1012a6,5120b503df4ed78f X-Google-Attributes: gid1012a6,public X-Google-Thread: 11035d,5120b503df4ed78f X-Google-Attributes: gid11035d,public X-Google-Thread: 1070f0,5120b503df4ed78f X-Google-Attributes: gid1070f0,public X-Google-Thread: 1069a6,5120b503df4ed78f X-Google-Attributes: gid1069a6,public X-Google-Thread: 10b612,5120b503df4ed78f X-Google-Attributes: gid10b612,public From: gale@grace.musc.edu (Larry Gale) Subject: Re: Portable startup files question.. Date: 1995/05/23 Message-ID: <3ptfti$anb@nellie.musc.edu>#1/1 X-Deja-AN: 103109083 distribution: inet references: organization: Medical University of South Carolina newsgroups: comp.unix.solaris,comp.unix.ultrix,comp.unix.admin,comp.unix.shell,comp.unix.aix,comp.sys.sun.admin,comp.sys.dec,comp.s In article , ricky@fibronics.co.il (Ricardo Marek) says: > >How can I configure my startup files ( .cshrc, .login, .profile, .tcshrc) >in order to get arround with the differences between OS types. (setting paths, >environment vars, aliases, etc..), having also the possibility of seting particular >stuff for a certain machine/host/OS System? > >- Using `uname` is not the short way, because SunOS and Solaris have the same > identification. > >- Using tcsh $OSTYPE is not portable in machines that doesn't have tcsh.. > >Any hint for startup files using SunOS 4.*, Solaris 2.*, Ultrix, HPUX, AIX >with the account, but logging in in different machines? > >PLEASE ANSWER VIA E-MAIL To: ricky@fibronics.co.il > >--- Ricky Marek. I don't know about the other systems, but 'uname -a' allows you to distinguish between SunOS (4.n.n) and Solaris (5.n) by looking at the 3rd field returned by the command. We use that mechanism locally with multiple Suns running different releases of the OS. -- Larry =========================================================================== + + + Larry Gale Systems Engineer + + gale@grace.musc.edu Clinical Support Systems + + (803)-792-6002 (voice) Center for Computing & Information Technology + + (803)-792-8319 (fax) Medical University of South Carolina + + 171 Ashley Avenue + + Charleston, SC 29425 + + + ===========================================================================