This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: a batch that executes a command within cygwin?
- From: Marco Atzeri <marco dot atzeri at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Sun, 14 Dec 2014 14:07:32 +0100
- 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>
On 12/14/2014 1:45 PM, Marilo wrote:
I would like to make a batch file that executes a command within cygwin.
or tells cygwin to execute some commands when it starts.
I know I can do
C:\cygwin\bin>nc<ENTER> <--- And that works
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
cd \cygwin\bin
nc
pause
or also
cd \cygwin\bin
bash -l -c your_command_or_bash_script
pause
but it doesn't run the nc command.
I'm interested in running a command (nc for example) within cygwin.
--
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