delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/01/05/05:42:33

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=2.1 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_64,RCVD_IN_CHINA,RCVD_IN_DNSWL_LOW,RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Hongyi Zhao <hongyi DOT zhao AT gmail DOT com>
Subject: Re: Trick cmd.exe of Windows XP to run cygwin Batch Script.
Date: Mon, 05 Jan 2009 18:41:29 +0800
Lines: 36
Message-ID: <mfo3m4944ovb7o06dbh8k2rl6kb2bfunl2@4ax.com>
References: <r531m49nvsu311asr3g18jk74m5l104lch AT 4ax DOT com> <20090104110730 DOT GH4017 AT trikaliotis DOT net>
Mime-Version: 1.0
X-IsSubscribed: yes
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

On Sun, 4 Jan 2009 12:07:31 +0100, Spiro Trikaliotis
<an-cygwin AT spiro DOT trikaliotis DOT net> wrote:

>Hello,
>
>* On Sun, Jan 04, 2009 at 06:20:20PM +0800 Hongyi Zhao wrote:
> 
>> I've some cygwin/bash scripts and I want to invoke them without log
>> into the Cygwin's bash terminal.  Is this possible?
>
>d:\> bash -c ./myscript

I've use the command: 

bash -c "help set"

to find that bash accept the following option:

       -C  If set, disallow existing regular files to be overwritten
           by redirection of output.

But, I cann't find the *-c* parameter used here, could you please give
me some hints?

>
>Note that you might have to add the path to bash (c:\cygwin\bin\bash or
>similar) in case it is not in your path. Also, you might want/need to
>add --login or -l to the options of bash.

Again, the bash's built-in help doesn't give me the abbr. *-l* for
*--login*, any hints on this?

Regards,

-- 
.: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :.


--
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