delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/12/01/18:14:11

X-Spam-Check-By: sourceware.org
Message-ID: <438F83B3.23BA2ACF@dessent.net>
Date: Thu, 01 Dec 2005 15:13:55 -0800
From: Brian Dessent <brian AT dessent DOT net>
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: how to detect if Windows or Linux is running?
References: <31DDB7BE4BF41D4888D41709C476B6570246A86E AT NIHCESMLBX5 DOT nih DOT gov> <dmnuns$iea$1 AT sea DOT gmane DOT org>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

"H. S." wrote:

> er .. how can I do that using SSH and non-interactively?

The same way you'd run any ssh command?

if ssh host uname \| grep -q CYGWIN; then
	echo "it's running cygwin";
else
	echo "it's not running cygwin";
fi

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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