[Klone-users] insmod or launching a script on the foxboard
smlabs
smlabs at libero.it
Wed Sep 24 01:45:48 EDT 2008
Hello again,
I continue on this thread because I have some problem running script
that would load modules on my foxboard.
In particular I downloaded the project klapp-minimal-lib-1.1.0/ (from
klone wiki) and I added in my.c the following functions:
/void functionBlue(void)
{
system("cd /mnt/flash/");
system("./cdBluez-start");
return;
}
void functionWebcam(void)
{
system("spcaload");
return;
}
/of course I added the prototypes in my.h and stdio.h (for System("..") ).
In index.kl1 I have written down:
/<%!
#include <my.h>
%>
<html>
<head> <title>klapp</title> </head>
<body>
<h1>KLone app example</h1>
<blockquote>
Call a function from libmy and display the returned value:
<blockquote>
<i>
<%
io_printf(out, "Hello Bluenode !");
io_printf(out, "FunctionBlue: launching app !");
functionBlue();
io_printf(out, "FunctionWebcam: launching app !");
functionWebcam();
%>
</i>
</blockquote>
</blockquote>
</body>
</html>/
The compiling process doesn't give any errors.
But when I launch kloned from the konsole on my foxboard I received:
/[root at axis /mnt/flash]706# ./kloned
./kloned: 1: Syntax error: "(" unexpected
/Where I did the mistake?
Thank you in advance.
smlabs ha scritto:
> thanks...
> I'll try and I let you know
>
> s
>
> thomas fossati ha scritto:
>> Hi,
>>
>> On Sep 15, 2008, at 7:20 AM, smlabs wrote:
>>> Is there a way to launch a script with root permission with klone?
>>
>> yes, in your kloned.conf set:
>>
>> allow_root yes
>>
>> and let kloned start with root credentials.
>>
>> ciao, t.
>>
>>
>>
>> _______________________________________________
>> Klone-users mailing list
>> Klone-users at koanlogic.com
>> http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users
>>
>
> _______________________________________________
> Klone-users mailing list
> Klone-users at koanlogic.com
> http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users
>
More information about the klone-users
mailing list