delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/01/25/09:20:09

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <ff8e9dfe0801250619yb402fb8ya626559a48888ed6@mail.gmail.com>
Date: Fri, 25 Jan 2008 15:19:25 +0100
From: "Mirco Piccin" <pictux AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Cygwin - batch file
In-Reply-To: <15088393.post@talk.nabble.com>
MIME-Version: 1.0
References: <15088393 DOT post AT talk DOT nabble DOT com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

Hi.

> i'm trying to write a batch file, which open cygwin, automatically execute a
> script in cygwin, and then close cygwin.

as reported in a my old post, that's what i've done: i've created a
file .bat (example: run_command.bat) on my desktop and inside that
(supposing you install cygwin in your C: drive):

C:

chdir C:\cygwin\bin


bash --login -i -c '<here insert the command you want to run>'


Save & Exit this file.
(obviously replace the  <here insert the command you want to run>
string with your command)
Now you need only to double-click in your .bat file.

Regards
M

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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