<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1);"><b>Von: </b></span><span style="font-family:'Helvetica'; font-size:medium;">Mike Steglich &lt;<a href="mailto:mike.steglich@berlin.de">mike.steglich@berlin.de</a>&gt;<br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1);"><b>Datum: </b></span><span style="font-family:'Helvetica'; font-size:medium;">6. Februar 2012 17:09:52 MEZ<br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1);"><b>An: </b></span><span style="font-family:'Helvetica'; font-size:medium;">Horand Gassmann &lt;<a href="mailto:Horand.Gassmann@dal.ca">Horand.Gassmann@dal.ca</a>&gt;<br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1);"><b>Betreff: </b></span><span style="font-family:'Helvetica'; font-size:medium;"><b>Re: [OS] COIN-OS command line arguments</b><br></span></div><br><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Gus,<div><br></div><div>I would like to use double quotes (did I really write brackets ;-)) in this manner to avoid some troubles if a user has blanks in an absolute path. Thinks like <i>OSSolverService -osil /Users/mike/projects/the first one/blablba/file.osil.&nbsp;</i></div><div><br></div><div>Cheers</div><div><br></div><div>Mike</div></div><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div><br><div><div>Am 06.02.2012 um 16:43 schrieb Horand Gassmann:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Mike Steglich &lt;<a href="mailto:mike.steglich@berlin.de">mike.steglich@berlin.de</a>&gt; wrote:<br><br><blockquote type="cite">Hi,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I found an interesting behavior of the OSSolverService command line arguments when I use brackets for embedding file names.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Please imagine a folder ./test that contains a OSiL file diet.osil.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">The following command works well:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">OSSolverService -osil "test/diet.osil" -osrl "test/diet.osrl" -serviceMethod solve<br></blockquote><br>Are you sure about that? The double quotes should not be there. The behavior in both cases should be identical, since the content of the config file is simply concatenated into a string and prepended to the other command line options you type at the terminal.<br><br><blockquote type="cite">If I write the 3 command line arguments into a config file diet.cFconf:<br></blockquote><blockquote type="cite">-osil "test/diet.osil"<br></blockquote><blockquote type="cite">-osrl "test/diet.osrl"<br></blockquote><blockquote type="cite">-serviceMethod solve<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">and execute OSSolverService via<br></blockquote><blockquote type="cite">OSSolverService -config diet.cFconf<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">then I get the following error:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Optimization Services Solver<br></blockquote><blockquote type="cite">Main Authors: Horand Gassmann, Jun Ma, and Kipp Martin<br></blockquote><blockquote type="cite">Distributed under the Eclipse Public License<br></blockquote><blockquote type="cite">OS Version: 2.4.2<br></blockquote><blockquote type="cite">Build Date: Jan 29 2012<br></blockquote><blockquote type="cite">SVN Version: 4442<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">terminate called after throwing an instance of 'ErrorClass'<br></blockquote><blockquote type="cite">Abort trap<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">If I do not use brackets for the file names:<br></blockquote><blockquote type="cite">-osil test/diet.osil<br></blockquote><blockquote type="cite">-osrl test/diet.osrl<br></blockquote><blockquote type="cite">-serviceMethod solve<br></blockquote><blockquote type="cite">then the problem does not occur.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I tested it also with v.2.3.5 and I got the same problem.<br></blockquote><br>The error message looks like it could be a bit clearer, but I would definitely consider this behavior expected. The quotes should not be there.<br><br>Cheers<br><br>gus<br><br><br>-------------------------------------------------------<br><br>Horand I. Gassmann, Professor<br><br>School of Business Administration, Dalhousie University<br>6100 University Avenue, PO Box 15000<br>Halifax, Nova Scotia, Canada, B3H 4R2<br>ph. (902) 494-1844<br>fax (902) 494-1107<br><br><a href="http://myweb.dal.ca/gassmann/">http://myweb.dal.ca/gassmann/</a><br><br></div></blockquote></div><br></div></div></blockquote></div><br></body></html>