delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/09/17/09:39:03

X-Spam-Check-By: sourceware.org
Date: Sun, 17 Sep 2006 09:38:48 -0400 (EDT)
From: Igor Peshansky <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: mocs <jonas DOT ogren AT home DOT se>
cc: cygwin AT cygwin DOT com
Subject: Re: Send command and parameters into cygwin.bat
In-Reply-To: <6347114.post@talk.nabble.com>
Message-ID: <Pine.GSO.4.63.0609170935450.19167@access1.cims.nyu.edu>
References: <5878378 DOT post AT talk DOT nabble DOT com> <ec5e26$2fk$1 AT sea DOT gmane DOT org> <6339347 DOT post AT talk DOT nabble DOT com> <450C3390 DOT 9050707 AT cygwin DOT com> <6347114 DOT post AT talk DOT nabble DOT com>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

Ugh, top-posting...  Reformatted.

On Sun, 17 Sep 2006, mocs wrote:

> Larry Hall (Cygwin) wrote:
> >
> > <http://cygwin.com/acronyms/#TOFU>.  Reformatted.
> > mocs wrote:
> >> mwoehlke-2 wrote:
> >>> mocs wrote:
> >>>> Ive would like to edit my cygwin.bat so a command into "cygwin" starts
> >>>> automatically with a document and some parameters, how should i write?
> >>> 'man bash'
> >>
> >>
> >  > Now I can start an application in cygwin with a single command:-)
> >  >
> >  > @echo off
> >  > C:
> >  > chdir C:\program\cygwin\bin
> >  > bash --login -i -c %xmds
> >  >
> >  >
> >  > But how should I write if I want to start the application with a
> >  > certain parameter or input file?
> >  >
> >  > What I would like to do is to run the following command "xmds -i
> >  > c:\path\ring.xmds".
> >
> > I see nothing wrong with the command you propose, with the exception
> > that I recommend POSIX paths if 'xmds' is a Cygwin app.
>
> Unfortunately it doesn't work.
>
> I thhink its because that xmds doesnt get the parameter or the input
> file sent from the command prompt in "dos-mode" in to the bas shell in
> cygwin. If I edit my .bat-file and write "xmds -parameter inputfile"
> then it works but I need to be able to change the inputfile without
> editing my .bat-file, and yes it doesnt work without " ".

If you are asking how to pass parameters from a batch file infocation to
an application called within that batch file, you're better off asking in
a Windows or batch programming forum.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

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