<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>RE: [Spice-devel] To launch spicec from a c program</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Thanks a lot.<BR>
<BR>
That was the problem. I joined parameters and spicec can not understand. However, another programs like rdesktop can read parameters in this way and that confused me.<BR>
<BR>
Yesterday spend hours stuck on this problem.<BR>
<BR>
<BR>
Mariano Grau<BR>
Dpto. Sistemas<BR>
Grupo Joly<BR>
<BR>
<BR>
<BR>
-----Mensaje original-----<BR>
De: Christophe Fergeau [<A HREF="mailto:cfergeau@redhat.com">mailto:cfergeau@redhat.com</A>]<BR>
Enviado el: mié 15/06/2011 0:41<BR>
Para: Mariano Grau Calín<BR>
CC: spice-devel@lists.freedesktop.org<BR>
Asunto: Re: [Spice-devel] To launch spicec from a c program<BR>
<BR>
Hi Mariano,<BR>
<BR>
On Wed, Jun 15, 2011 at 12:14:56AM +0200, Mariano Grau Calín wrote:<BR>
&gt; int main(int argc, char *argv[])<BR>
&gt; {<BR>
&gt;&nbsp; char *params[4];<BR>
&gt;&nbsp; params[0] = &quot;spicec&quot;;<BR>
&gt;&nbsp; params[1] = &quot;-h cadi17&quot;;<BR>
&gt;&nbsp; params[2] = &quot;-p 5900&quot;;<BR>
&gt;&nbsp; params[3] = NULL;<BR>
<BR>
Shouldn't it be:<BR>
&nbsp;&nbsp;&nbsp; char *params[6];<BR>
&nbsp;&nbsp;&nbsp; params[0] = &quot;spicec&quot;;<BR>
&nbsp;&nbsp;&nbsp; params[1] = &quot;-h&quot;;<BR>
&nbsp;&nbsp;&nbsp; params[2] = &quot;cadi17&quot;;<BR>
&nbsp;&nbsp;&nbsp; params[3] = &quot;-p&quot;;<BR>
&nbsp;&nbsp;&nbsp; params[4] = &quot;5900&quot;;<BR>
&nbsp;&nbsp;&nbsp; params[5] = NULL;<BR>
?<BR>
<BR>
Also, in the error message you mentionned, it seems there's an extra space<BR>
in front of the hostname?<BR>
<BR>
These are just guesses for now, trying to help :)<BR>
<BR>
Christophe<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>