X-Spam-Check-By: sourceware.org
Message-ID: <6347114.post@talk.nabble.com>
Date: Sun, 17 Sep 2006 00:23:53 -0700 (PDT)
From: mocs <jonas.ogren@home.se>
To: cygwin@cygwin.com
Subject: Re: Send command and parameters into cygwin.bat
In-Reply-To: <450C3390.9050707@cygwin.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
X-Nabble-From: jonas.ogren@home.se
References: <5878378.post@talk.nabble.com> <ec5e26$2fk$1@sea.gmane.org> <6339347.post@talk.nabble.com> <450C3390.9050707@cygwin.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id k8H7OALk008213


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

Best regards!

Jonas Ögren


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.
> 
> -- 
> Larry Hall                              http://www.rfk.com
> RFK Partners, Inc.                      (508) 893-9779 - RFK Office
> 216 Dalton Rd.                          (508) 893-9889 - FAX
> Holliston, MA 01746
> 
> --
> 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/
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Send-command-and-parameters-into-cygwin.bat-tf2129841.html#a6347114
Sent from the Cygwin Users forum at Nabble.com.


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


