delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/02/02/11:11:29

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:subject:reply-to:to:references:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=oSvGWBCErNAVaaxZ
KC5EbFUaDkir8twwj59bkhkhDoVp46ML/l5qLzWKleorNfrBIJqYcOBmZFL9wm+E
IJPA6ovizWHyR/y+GSxCr77ps5uN61+HLtDPPOFv2R5skrZen0Zz524nHrlkKnQ6
IoEED/hBiA1RI8q3SePnd8yZ2ac=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:subject:reply-to:to:references:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=M67dlimr44/Wt0S9/kbnJP
SlC90=; b=AzApL2PfdkqhkBXXhpVj1Fgdy0cJaHqGKzVXx4e3wFFjjj1nnQHRNZ
qwBirqf6PPQlHXwI3JYO0p9Y2zLsILVWTWFzNL1x1qqiVgPGydfRnHsORbKd9hS+
w+gajIsIgtVKpLXOgPcBN0plvqicjf2gRTXUWClACmUFfBf2q+n8M=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=dash, dialogue, H*F:D*ab.ca, services
X-HELO: smtp-out-no.shaw.ca
X-Authority-Analysis: v=2.3 cv=Bo6zP7f5 c=1 sm=1 tr=0 a=MVEHjbUiAHxQW0jfcDq5EA==:117 a=MVEHjbUiAHxQW0jfcDq5EA==:17 a=N659UExz7-8A:10 a=YrhqwCJ2izxSdhlMpA8A:9 a=pILNOxqGKmIA:10
From: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca>
Subject: Re: How to start Cygwin from outside Cygwin and pass a command to execute?
Reply-To: Brian DOT Inglis AT SystematicSw DOT ab DOT ca
To: cygwin AT cygwin DOT com
References: <4df6f54b-5898-76f9-ebf6-1a2e40c65aa5 AT yahoo DOT co DOT uk>
Message-ID: <d1e95431-0aa3-b1d1-f215-30b387fa7af5@SystematicSw.ab.ca>
Date: Fri, 2 Feb 2018 09:11:09 -0700
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0
MIME-Version: 1.0
In-Reply-To: <4df6f54b-5898-76f9-ebf6-1a2e40c65aa5@yahoo.co.uk>
X-CMAE-Envelope: MS4wfC4nbJKB/OH3OHsN3++IBVHOkVECzwpwBut8fqeKeR0rL6X4y7v/sV7Rva9g3FeYLjPa4MNgjFrUfHJws+DQ7mxTYUpW49TNjMSFKT0mLHwr/LgF5bTc 3shLNwfPo4XxsDqI/6TAbdRi+VG1OzwgNWmXh4sYzlXax47vYcWnDDmiWAdko1cGGcfrWBC3g11/pg==
X-IsSubscribed: yes

On 2018-02-02 01:31, Ben via cygwin wrote:
> Assume my CgyWin (on a windows 7) is currently NOT started.
> Assume I want to call from Windows my CgyWin and pass a command to execute.
> Afterwards CygWin should automatically be closed again.
> How can I achieve this?

Cygwin is a DLL providing Unix/POSIX facilities over the underlying Windows OS,
a collection of DLLs providing services using those facilities, and programs
using those services and facilities, following the Unix model of the OS
supporting libraries, services, and drivers, and managing hardware resources.
Cygwin is started when you run any program using those libraries, services, or
facilities.
Add the Cygwin bin directory to PATH in your User environment and you can run
Cygwin programs from the Win-R Run dialogue, any Windows shortcut, Scheduled
Task, Windows console shell: using Windows style exe paths with Unix command
parameters and Unix style file paths; or Cygwin terminal and shell using Unix
style commands.
Some users use Cygwin from the cmd shell, some from Powershell, others from
mintty or other terminals with bash, dash, or another Cygwin shell.

So just run the command from wherever you want; depending on what you want to
happen with the output, you may need a shell to redirect output, or a console
terminal to display output.

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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