delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/12/14/07:46:11

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:date:from:reply-to:to:message-id:subject
:mime-version:content-type:content-transfer-encoding; q=dns; s=
default; b=At1Fgc+8vaE91R4TQYpg52Sn//8QDo2fnVT/vWvOOoqyMZ0LNoc9e
p5REFI91J0CkIz7JOwJ68LqxgM9mweky91cD2vLYXJ+mUhQmKg0poR/CThznBm51
VfG3KFLWJbHmVIl+z6UNS1+isaIe3IDw3iUmLK2jARiwSevOm48WAo=
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:date:from:reply-to:to:message-id:subject
:mime-version:content-type:content-transfer-encoding; s=default;
bh=Jk3/4nK4uw3V2VIfk3kRo+zD2gQ=; b=BXY4x5XBiV6+tK0mcVUNix2bVPf3
WzolbiLEQWlXFvl/eGKgO/DNAZIvVm6j88H3OEE9A5KFa9sZZ1psyyQ7pKnlNe/z
hRdnGqPBRjkcH1xugbJSG/0sFBpK19tTWNEH+SxskL87ydSxN8oSD6tkhzmHv2T3
4Tm5fF8tVwAO5eQ=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=2.7 required=5.0 tests=AWL,BAYES_60,FREEMAIL_FROM,KAM_COUK,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2
X-HELO: nm17-vm8.bullet.mail.ir2.yahoo.com
Date: Sun, 14 Dec 2014 12:45:47 +0000 (UTC)
From: Marilo <narium85-mlscar AT yahoo DOT co DOT uk>
Reply-To: Marilo <narium85-mlscar AT yahoo DOT co DOT uk>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Message-ID: <611194532.436042.1418561147642.JavaMail.yahoo@jws11167.mail.ir2.yahoo.com>
Subject: a batch that executes a command within cygwin?
MIME-Version: 1.0
X-IsSubscribed: yes

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 



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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019