This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: a batch that executes a command within cygwin?
- From: Andrey Repin <anrdaemon at yandex dot ru>
- To: Marilo <narium85-mlscar at yahoo dot co dot uk>, cygwin at cygwin dot com
- Date: Sun, 14 Dec 2014 22:32:11 +0300
- Subject: Re: a batch that executes a command within cygwin?
- Authentication-results: sourceware.org; auth=none
- References: <611194532 dot 436042 dot 1418561147642 dot JavaMail dot yahoo at jws11167 dot mail dot ir2 dot yahoo dot com>
- Reply-to: cygwin at cygwin dot com
Greetings, Marilo!
> I would like to make a batch file that executes a command within cygwin.
You make it sound like "Cygwin" is something alien, unnatural.
The truth is, cygwin is just a collection of programs, that using one common
library as a base of their API.
> or tells cygwin to execute some commands when it starts.
>
> I know I can do
> C:\cygwin\bin>nc<ENTER> <--- And that works
So, now, what is the culprit?
> So there isnt a big reason for me to want to do it within cygwin.. But i'm interested to know if I can..
> I can make a batch file that says
> cd \cygwin
> cygwin
> nc
> pause
> but it doesn't run the nc command.
What it supposed to do?... If you want to start netcat, either chdir to a
proper directory, or use full path to executable. Neither is true for your
example, assuming I understood it right.
> I'm interested in running a command (nc for example) within cygwin.
Again, your question doesn't make sense.
--
WBR,
Andrey Repin (anrdaemon@yandex.ru) 14.12.2014, <22:29>
Sorry for my terrible english...
--
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