<!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>
> int main(int argc, char *argv[])<BR>
> {<BR>
> char *params[4];<BR>
> params[0] = "spicec";<BR>
> params[1] = "-h cadi17";<BR>
> params[2] = "-p 5900";<BR>
> params[3] = NULL;<BR>
<BR>
Shouldn't it be:<BR>
char *params[6];<BR>
params[0] = "spicec";<BR>
params[1] = "-h";<BR>
params[2] = "cadi17";<BR>
params[3] = "-p";<BR>
params[4] = "5900";<BR>
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>