X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; q=dns; s=default; b=FXo15RZC3FHtL+WqMmJohjzPZCN0URiB3IBn/j6ji0d 8tLHyyVOlRzKDgDKY/78nwyulbV+ym3wHUImsPq6mYYRB5cAKx6vZ8faJLWTHRmp VCoFPOeUFR6lE8K01bWAICQ8BgPeQFRFn1zPZb/ygxGDikGfEXmKhKDR8PG2XnD0 = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; s=default; bh=0MojvxQvVi4Lk8GYheBTUC93y9s=; b=DSxN23yxR5S+cszpX OHkisdifoUL1y/B9k84RgtLPHefi5nrFNGDLNszSLbBJJ0hIZSGOPdN10WrFQEx8 1ggp0wlzNPAK2Z2DfD8Q2objgl19+FBwdh/rJv47l+pQnvDHpgi1GoLnpwH05yMr Sp15CxU/A/JQwFRfYkCq9rFHg0= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wi0-f182.google.com X-Received: by 10.194.6.227 with SMTP id e3mr43979299wja.107.1418562458856; Sun, 14 Dec 2014 05:07:38 -0800 (PST) Message-ID: <548D8B94.4030701@gmail.com> Date: Sun, 14 Dec 2014 14:07:32 +0100 From: Marco Atzeri User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: a batch that executes a command within cygwin? References: <611194532 DOT 436042 DOT 1418561147642 DOT JavaMail DOT yahoo AT jws11167 DOT mail DOT ir2 DOT yahoo DOT com> In-Reply-To: <611194532.436042.1418561147642.JavaMail.yahoo@jws11167.mail.ir2.yahoo.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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 <--- 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