delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/01/13/10:44:21

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.0 required=5.0 tests=BAYES_20,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
From: Emmett Kelly <ekelly30 AT qub DOT ac DOT uk>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Date: Fri, 13 Jan 2012 15:43:32 +0000
Subject: 1.7.9: Passing Arguments to cygstart
Message-ID: <D1899463DAFD9447ACD00FDCE567B932E5FA57E51E@EX2K7-VIRT-4.ads.qub.ac.uk>
MIME-Version: 1.0
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
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q0DFiGN9024709

I am attempting to start a program using cygstart. 
I am logged in through an SSH from a linux machine, I am capable of starting the program using:
cygstart program.exe

However I want to be able to pass the xml file for that program to open as an argument.

cygstart program.exe file.xml
opens the program but not with the correct file. I have seen some mention of using --  to delimit the arguments but that was unsuccessful for me too.
i.e. :    cygstart -- program.exe -- file.xml

I know that the program can take arguments in Windows, The command is simple program.exe file.xml and it will open the correct file using that program. 

Any assistance with how to properly pass an argument to the program would be greatly appreciated. 
Thank you

Emmett

P.S.
I seen a lot of discussion on here about starting graphical programs through an SSH using cygstart. I managed to do it by giving my user account the same groupid as the SYSTEM group. 

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