public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Brian Inglis <Brian.Inglis@SystematicSw.ab.ca>
To: cygwin@cygwin.com
Subject: Re: How to start Cygwin from outside Cygwin and pass a command to execute?
Date: Fri, 02 Feb 2018 16:11:00 -0000	[thread overview]
Message-ID: <d1e95431-0aa3-b1d1-f215-30b387fa7af5@SystematicSw.ab.ca> (raw)
In-Reply-To: <4df6f54b-5898-76f9-ebf6-1a2e40c65aa5@yahoo.co.uk>

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

  parent reply	other threads:[~2018-02-02 16:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-02  8:31 Ben via cygwin
2018-02-02  9:17 ` David Allsopp
2018-02-02 16:11 ` Brian Inglis [this message]
2018-02-02 19:18 ` Achim Gratz
2018-02-04 21:05 ` Andrey Repin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d1e95431-0aa3-b1d1-f215-30b387fa7af5@SystematicSw.ab.ca \
    --to=brian.inglis@systematicsw.ab.ca \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).