Thanks a lot.

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.

Yesterday spend hours stuck on this problem. 


Mariano Grau
Dpto. Sistemas
Grupo Joly



-----Mensaje original-----
De: Christophe Fergeau [mailto:[email protected]]
Enviado el: mié 15/06/2011 0:41
Para: Mariano Grau Calín
CC: [email protected]
Asunto: Re: [Spice-devel] To launch spicec from a c program
 
Hi Mariano,

On Wed, Jun 15, 2011 at 12:14:56AM +0200, Mariano Grau Calín wrote:
> int main(int argc, char *argv[])
> {
>  char *params[4];
>  params[0] = "spicec";
>  params[1] = "-h cadi17";
>  params[2] = "-p 5900";
>  params[3] = NULL;

Shouldn't it be:
    char *params[6];
    params[0] = "spicec";
    params[1] = "-h";
    params[2] = "cadi17";
    params[3] = "-p";
    params[4] = "5900";
    params[5] = NULL;
?

Also, in the error message you mentionned, it seems there's an extra space
in front of the hostname?

These are just guesses for now, trying to help :)

Christophe

_______________________________________________
Spice-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/spice-devel

Reply via email to