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

2011-06-15 Thread Mariano Grau Calín
- De: Christophe Fergeau [mailto:cferg...@redhat.com] Enviado el: mié 15/06/2011 0:41 Para: Mariano Grau Calín CC: spice-devel@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: >

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

2011-06-14 Thread Christophe Fergeau
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] = "spi

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

2011-06-14 Thread Mariano Grau Calín
Hi, I'm writing a little client in c that given hypervisor host and domain name launch spice client with port used by vm. Also, if domain is shutdown startup it. The syntax would be as: # myclient server1 dom-xp When launch command as 'spicec -h server1 -p 5902' from c program spice says: