This is the mail archive of the
mailing list for the Cygwin project.
1.7.9: Passing Arguments to cygstart
- 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
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:
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.
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
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple