[Spice-devel] To launch spicec from a c program

Mariano Grau Calín mgrau at grupojoly.com
Wed Jun 15 02:06:48 PDT 2011


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:cfergeau at redhat.com]
Enviado el: mié 15/06/2011 0:41
Para: Mariano Grau Calín
CC: spice-devel at lists.freedesktop.org
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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20110615/d43c04c3/attachment.html>


More information about the Spice-devel mailing list