[Spice-devel] To launch spicec from a c program
Christophe Fergeau
cfergeau at redhat.com
Tue Jun 14 15:41:59 PDT 2011
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 --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20110615/e66dd022/attachment-0001.pgp>
More information about the Spice-devel
mailing list