| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-Spam-Check-By: | sourceware.org |
| Message-ID: | <49029EC2.5050700@veritech.com> |
| Date: | Sat, 25 Oct 2008 00:21:22 -0400 |
| From: | "Lee D.Rothstein" <lee AT veritech DOT com> |
| Reply-To: | lee AT veritech DOT com |
| User-Agent: | Thunderbird 2.0.0.17 (Windows/20080914) |
| MIME-Version: | 1.0 |
| To: | cygwin AT cygwin DOT com |
| Subject: | Redirecting Console Input |
| X-Bogosity: | Ham, tests=bogofilter, spamicity=0.000075, version=1.0.1 |
| X-IsSubscribed: | yes |
| 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 |
Is there a way to redirect console input /to/ (actually /from/ ;-) ) a
file, for say a Vista
console (CLI) command like 'sc'?
I've tried:
sc <Ys.in >sc.help.txt
Where 'Ys.in' is a file containing a bunch of 'Y's, which is what 'sc'
is waiting for.
'sc' ignores the file and waits for me to type 'Y', before it
resumes the help output to stdout.
I tried googling, but that was about as effective as US Government
oversight of the financial sector. I don't seem to have the magic bean
terms, or perhaps there is no such technique/utility.
BTW, if this weren't tough enough, I'm running Vista 64bit.
Thanks,
Lee
--
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |