delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/12/14/14:35:51

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:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; q=dns; s=default; b=vCSJdDvYCFUCV2cD
DPkc8V3mk0rfF7U0V8+y07r33qwnL8wGQpP6XbiMCfwQQ+6b4HDYF/5iBkGdySfT
qnRi9EPLhsMAdY9NgaKqiJqWFsufz2IJJrAOgSGXeR/OLuGpZ3bB9ExGiZZVJaZ7
j5q99Uin/G5JVq9BeSQGxUGe604=
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:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; s=default; bh=Gns0ej5f8m+PRXhK+o2Cx+
38Jgk=; b=V3HbFnG1LZNKQ6HTn7ehq1YhST/0SGivtJznHa1WjsQ6LzhAliMuhG
VgOVm24oCd5y7jGKaLXNc4i6HZoeavMGKdOlJZhYLdC81fs5LxE/KRViXzm25BP5
AN3qi6Gt99TIzdqvHkj6Re9NgvJqmY/dovQvXTFeiurUQIj/9Dw5k=
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=1.7 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_BODY_URIBL_PCCC,KAM_FROM_URIBL_PCCC,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2
X-HELO: smtp.ht-systems.ru
Date: Sun, 14 Dec 2014 22:32:11 +0300
From: Andrey Repin <anrdaemon AT yandex DOT ru>
Reply-To: cygwin AT cygwin DOT com
Message-ID: <1663723244.20141214223211@yandex.ru>
To: Marilo <narium85-mlscar AT yahoo DOT co DOT uk>, cygwin AT cygwin DOT com
Subject: Re: a batch that executes a command within cygwin?
In-Reply-To: <611194532.436042.1418561147642.JavaMail.yahoo@jws11167.mail.ir2.yahoo.com>
References: <611194532 DOT 436042 DOT 1418561147642 DOT JavaMail DOT yahoo AT jws11167 DOT mail DOT ir2 DOT yahoo DOT com>
MIME-Version: 1.0
X-IsSubscribed: yes

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 AT yandex DOT 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

- Raw text -


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