X-Spam-Check-By: sourceware.org Message-ID: <438F83B3.23BA2ACF@dessent.net> Date: Thu, 01 Dec 2005 15:13:55 -0800 From: Brian Dessent 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> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Reply-To: cygwin AT cygwin DOT com 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 "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/