delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/04/05/07:41:01

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: magetower.office.aol.com: prentis owned process doing -bs
Date: Fri, 5 Apr 2002 07:40:01 -0500 (EST)
From: Prentis Brooks <prentis AT aol DOT net>
To: "Gupta, Sanjay" <SGupta AT Epylon DOT com>
cc: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: Re: Which OS Type
In-Reply-To: <657B20E93E93D4118F9700D0B73CE3EA0D397231@goofy.epylon.lan>
Message-ID: <Pine.LNX.4.44.0204050738180.12924-100000@magetower.office.aol.com>
MIME-Version: 1.0

uname -s

If it is a Windows box and that command works :) it would have the
string "cygwin".  Most linux dists say Linux.  You can use -a instead of
-s to get all of the data from the uname.  

Experimentation with that command would give you the most benefit.

On Thu, 4 Apr 2002, Gupta, Sanjay wrote:

> Is there any command to find out which Operating System I am using.
> Basically, I need to know whether the OS is Windows type or Unix Type. The
> Unix type could be any Unix e.g. Sun , HP etc , Linux etc.
> 
> I am writing a shell script and if the shell script is run under windows
> environment using cygwin, then I have to take care of some file naming
> conventions for oracle sqlplus command under windows
> and if the script run under unix then I have use filenames, path names 
> for sqlplus command in unix.
> I know uname command, but is there any other command which can be more
> useful in my case.
> 
> example :-
> sqlplus command in windows using cygwin.
> 
> sqlplus scott/tiger
> @c:\mydir\test.sql
> 
> the samething in unix
> 
> sqlplus scott/tiger
> @/usr/mydir/test.sql
> 
> Thanks
> Sanjay
> 
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting:         http://cygwin.com/bugs.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
> 

-- 
Prentis Brooks	| prentis AT aol DOT net | 703-265-0914 | AIM: PrentisBrooks
Senior System Administrator - Web Infrastructure & Security

       A knight is sworn to valor.  His heart knows only virtue.  His blade
       defends the helpless.  His word speaks only truth.  His wrath undoes
       the wicked. - the old code of Bowen, last of the dragonslayers


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019