From: Brian Inglis <Brian.Inglis@SystematicSw.ab.ca>
To: cygwin@cygwin.com
Subject: Re: how is cygstart different from cmd /c or how to have cygstart start 'inline'?
Date: Fri, 21 Dec 2018 15:12:00 -0000 [thread overview]
Message-ID: <42f063c4-2884-f118-4744-259cd229e77f@SystematicSw.ab.ca> (raw)
In-Reply-To: <5C1C973B.7050509@tlinx.org>
On 2018-12-21 00:33, L A Walsh wrote:
> Got a program that starts under cygstart, but I'd like to be able to start it
> without starting up the program in a new window..so was trying cmd /c.
See:
https://github.com/mintty/mintty/wiki/Tips#inputoutput-interaction-with-alien-programs
> I compared env's and noted both PATH and TMP had been converted back to the
> backslash using case, so I did that manually:
> But no luck in launching (cygstart case works):
> cd "$ldir" && {
> Â Â if ((usecmd)); then
> Â Â Â Â Â Â 'c:/windows/system32/cmd.exe' /c "$lpath" "${args[@]}"
> Â Â else
> Â Â Â Â Â Â cygstart "$lpath" "${args[@]}"
> Â Â fi
> }
> So what else does cygstart do that I might setup before a "cmd /c" to get the
> target to run?
START - Starts a separate window to run a specified program or command
> Or anyway to have cygstart run the command with its output in the current
> window?
If it's a console cmd it should run under a term without any problems:
$ cmd /c ver
Microsoft Windows [Version 10.0.17134.471]
or you may need to use https://github.com/rprichard/winpty - allows running
Windows console programs under mintty or Cygwin's sshd with properly-functioning
input and output by starting winpty-agent with a hidden console window, which
bridges between the console API and terminal input/output escape codes, polls
the hidden console's screen buffer for changes and generates a corresponding
stream of output.
--
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada
This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
--
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
next prev parent reply other threads:[~2018-12-21 13:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-21 13:15 L A Walsh
2018-12-21 15:12 ` Brian Inglis [this message]
2018-12-24 15:31 ` L A Walsh
2018-12-22 10:26 ` cyg Simple
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=42f063c4-2884-f118-4744-259cd229e77f@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).