Thanks ma liang,

I just checked and you're right it seems that system() is async. Thus it
could be kinda easy to implement into APE. I've just relayed this
information to Anthony, he will take care of this soon :)

We'll stay in touch.

Thanks to the both of you.

--
John Chavarria - CEO / Designer
Weelya - improve the Web

+33 (0) 4.67.169.778
+33 (0) 6.43.56.00.83

Twitter : @jchavarria / @weelya

32 Rue du Faubourg Boutonnet
34090 Montpellier

http://www.ape-project.org/
http://www.weelya.com/


On Tue, Mar 23, 2010 at 5:42 AM, ma liang <[email protected]> wrote:

> change to sys.exec("sudo myuser foo.sh &", function(err...   should be async,
>
>
> not sure in node.js, but c's system() will be async.
>
>
>
> 2010/3/23 John Chavarria <[email protected]>
>
> Hi Timo,
>>
>> First of all, thanks for your interest in the APE project, your (many)
>> contributions to the mailing list are really appreciated by our team. Thank
>> you very much :-)
>>
>> About your concerns, this should be discussed with Anthony (paraboul - The
>> server developer) but this is something we already talked about before,
>> implementing the exec function. The only problem, is that APE is fully
>> asynchronous, so we do need to implement this in an async way too. And that
>> could be the most difficult part of this new feature. Indeed this could be
>> pretty usefull, with the callback function on the exec and so on, so we
>> really need to think about it.
>>
>> Do you have any notions in C language ? If so, maybe you could take a look
>> at how to implement it in async in C, and proposes it to Anthony.
>>
>> Thank you again!
>>
>> Best regards,
>>
>> --
>> John Chavarria - CEO / Designer
>> Weelya - improve the Web
>>
>> +33 (0) 4.67.169.778
>> +33 (0) 6.43.56.00.83
>>
>> Twitter : @jchavarria / @weelya
>>
>> 32 Rue du Faubourg Boutonnet
>> 34090 Montpellier
>>
>>
>> http://www.ape-project.org/
>> http://www.weelya.com/
>>
>>
>>
>> On Sat, Mar 20, 2010 at 1:09 PM, Timo Michna <[email protected]> wrote:
>>
>>>
>>> Hi!
>>>
>>> Despite of the possibility of sending through http to PHP or other
>>>  scripts, I´d really love to see some sort of "exec" command in APE,
>>> in which you could execute system/shell commands.
>>> Like in node.js <http://nodejs.org/> you can do:
>>> var sys = require("sys");
>>> sys.exec("sudo myuser foo.sh", function(err, stdout, stderr){
>>>
>>>    if (err) sys.puts(err);
>>>
>>>
>>>
>>> });
>>>
>>>
>>> Timo
>>>
>>> btw.: If you don´t know node.js yet, I really really recommend
>>> you take a look at it.
>>>
>>>
>>>
>>> --- Nouknouk *<[email protected]>* schrieb am *Do, 18.3.2010:
>>>
>>>
>>> Von: Nouknouk <[email protected]>
>>> Betreff: Re: [APE Project] APE and php
>>> An: [email protected]
>>> Datum: Donnerstag, 18. März, 2010 15:30 Uhr
>>>
>>> Hi,
>>>
>>> the APE server can do HTTP requests, so you can use this feature to call
>>> a PHP 'page' on you webserver. Of course, it would be better to add a way to
>>> ensure the page is called from the APE server (and not a visitor of your
>>> website for example).
>>>
>>> You may want to look at the file 'scripts/framework/Http.js' in the
>>> server package: there are several examples of code to show how to use the
>>> Http class, like this one:
>>>
>>>     var request = new 
>>> Http('http://twitter.com:80/statuses/update.json'<http://twitter.com:80/statuses/update.json%27>
>>> );
>>>     request.set('method', 'POST');
>>>
>>>     // GET or POST data
>>>     request.writeData('status', 'Hello!');
>>>
>>>     // HTTP Auth
>>>     request.set('auth', 'user:password');
>>>
>>>     request.getContent(function (result) {
>>>         Ape.log(result);
>>>     });
>>>
>>>
>>> Regards,
>>>
>>> Nouk²
>>>
>>> Le 18/03/2010 13:09, Vinz a écrit :
>>> > Hi,
>>> >
>>> > APE can be invoked by PHP using inlinepush... but does PHP can be
>>> > invoked by APE ?
>>> >
>>> > Example, APE Server receive a command, it execute a php script (or a
>>> > shell script) ?
>>> >
>>> > Thanks!
>>> >
>>> >
>>>
>>> -- You received this message because you are subscribed to the Google
>>> Groups "APE Project" group.
>>> To post to this group, send email to 
>>> [email protected]<http://mc/[email protected]>
>>> To unsubscribe from this group, send email to
>>> [email protected]<http://mc/[email protected]>
>>> For more options, visit this group at
>>> http://groups.google.com/group/ape-project?hl=en
>>> ---
>>> APE Project (Ajax Push Engine)
>>> Official website : http://www.ape-project.org/
>>> Git Hub : http://github.com/APE-Project/
>>>
>>> *
>>> __________________________________________________
>>> Do You Yahoo!?
>>> Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz
>>> gegen Massenmails.
>>> http://mail.yahoo.com
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "APE Project" group.
>>> To post to this group, send email to [email protected]
>>> To unsubscribe from this group, send email to
>>> [email protected]<ape-project%[email protected]>
>>> For more options, visit this group at
>>> http://groups.google.com/group/ape-project?hl=en
>>> ---
>>> APE Project (Ajax Push Engine)
>>> Official website : http://www.ape-project.org/
>>> Git Hub : http://github.com/APE-Project/
>>>
>>> To unsubscribe from this group, send email to ape-project+
>>> unsubscribegooglegroups.com or reply to this email with the words
>>> "REMOVE ME" as the subject.
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "APE Project" group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]<ape-project%[email protected]>
>> For more options, visit this group at
>> http://groups.google.com/group/ape-project?hl=en
>> ---
>> APE Project (Ajax Push Engine)
>> Official website : http://www.ape-project.org/
>> Git Hub : http://github.com/APE-Project/
>>
>> To unsubscribe from this group, send email to ape-project+
>> unsubscribegooglegroups.com or reply to this email with the words "REMOVE
>> ME" as the subject.
>>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "APE Project" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<ape-project%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/ape-project?hl=en
> ---
> APE Project (Ajax Push Engine)
> Official website : http://www.ape-project.org/
> Git Hub : http://github.com/APE-Project/
>
> To unsubscribe from this group, send email to ape-project+
> unsubscribegooglegroups.com or reply to this email with the words "REMOVE
> ME" as the subject.
>

-- 
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/

To unsubscribe from this group, send email to 
ape-project+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to