Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <657B20E93E93D4118F9700D0B73CE3EA0D397231@goofy.epylon.lan> From: "Gupta, Sanjay" To: "'cygwin AT cygwin DOT com'" Subject: Which OS Type Date: Thu, 4 Apr 2002 22:34:32 -0800 MIME-Version: 1.0 Content-Type: text/plain 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/