[v8-users] C/C++ library to run an external program that works with V8

2014-11-10 Thread Kevin Ingwersen (Ingwie Phoenix)
Hey.

I am working on a small v8 based app. Its just one that lets me design some 
startup and shutdown services with JS. But I wanted to spread it just a bit 
further, and wanted to add a library to it, that:

- Runs an external program
- Picks up STDOUT and STDERR
- Returns the exit code.

I do not want to use redirection for this case, as I want stdout/stderr 
separately.

Does anyone of a simple library to do that? One that does -not- depend on 
Boost, Poco, dlib or anything? Just a simple stand-alone library?

Kind regards,
Ingwie

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[v8-users] C/C++ library to run an external program that works with V8

2014-11-11 Thread Isiah Meadows
Have you seen this? 

https://developers.google.com/v8/embed

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[v8-users] C/C++ library to run an external program that works with V8

2014-11-11 Thread Isiah Meadows
Have you seen this? 

https://developers.google.com/v8/embed

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [v8-users] C/C++ library to run an external program that works with V8

2014-11-11 Thread Louis Santillan
Is this stackoverflow popen2 [0] something like what you're looking for?

[0] 
http://stackoverflow.com/questions/125828/capturing-stdout-from-a-system-command-optimally

On Mon, Nov 10, 2014 at 9:12 AM, Kevin Ingwersen (Ingwie Phoenix)
 wrote:
> Hey.
>
> I am working on a small v8 based app. Its just one that lets me design some 
> startup and shutdown services with JS. But I wanted to spread it just a bit 
> further, and wanted to add a library to it, that:
>
> - Runs an external program
> - Picks up STDOUT and STDERR
> - Returns the exit code.
>
> I do not want to use redirection for this case, as I want stdout/stderr 
> separately.
>
> Does anyone of a simple library to do that? One that does -not- depend on 
> Boost, Poco, dlib or anything? Just a simple stand-alone library?
>
> Kind regards,
> Ingwie
>
> --
> --
> v8-users mailing list
> v8-users@googlegroups.com
> http://groups.google.com/group/v8-users
> ---
> You received this message because you are subscribed to the Google Groups 
> "v8-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to v8-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [v8-users] C/C++ library to run an external program that works with V8

2014-11-12 Thread Louis Santillan
I also found these suggestions [0] on a Stanford Q&A site.  This bit
of code on github [1] is particularly interesting, even if GPL'd

[0] 
http://gotoanswer.stanford.edu/how_to_control_popen_stdin_stdout_stderr_redirection-5609974/
[1] https://github.com/sni/mod_gearman/blob/master/common/popenRWE.c

On Tue, Nov 11, 2014 at 5:12 PM, Louis Santillan  wrote:
> Is this stackoverflow popen2 [0] something like what you're looking for?
>
> [0] 
> http://stackoverflow.com/questions/125828/capturing-stdout-from-a-system-command-optimally
>
> On Mon, Nov 10, 2014 at 9:12 AM, Kevin Ingwersen (Ingwie Phoenix)
>  wrote:
>> Hey.
>>
>> I am working on a small v8 based app. Its just one that lets me design some 
>> startup and shutdown services with JS. But I wanted to spread it just a bit 
>> further, and wanted to add a library to it, that:
>>
>> - Runs an external program
>> - Picks up STDOUT and STDERR
>> - Returns the exit code.
>>
>> I do not want to use redirection for this case, as I want stdout/stderr 
>> separately.
>>
>> Does anyone of a simple library to do that? One that does -not- depend on 
>> Boost, Poco, dlib or anything? Just a simple stand-alone library?
>>
>> Kind regards,
>> Ingwie
>>
>> --
>> --
>> v8-users mailing list
>> v8-users@googlegroups.com
>> http://groups.google.com/group/v8-users
>> ---
>> You received this message because you are subscribed to the Google Groups 
>> "v8-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to v8-users+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [v8-users] C/C++ library to run an external program that works with V8

2014-11-12 Thread Kevin Ingwersen (Ingwie Phoenix)
Yes, I have seen popenRWE.c before. But due to it being GPL’d, I have an issue 
in using it, as GPL usually means: no static linking. Plus, the code doe snto 
apepar to be cross-platform…so I had to close it out. But the other 
stackoverflow link and the stanford one look interesting. Maybe it can help me 
create something on my end…who knows.

For now, I am using an ultra-outdated library called libexecstream that works 
on Windows and UNIX. Although, Windows support is unknown as of today, because 
the manual stated WinXP as the latest versionb eing supported...
> Am 12.11.2014 um 22:42 schrieb Louis Santillan :
> 
> I also found these suggestions [0] on a Stanford Q&A site.  This bit
> of code on github [1] is particularly interesting, even if GPL'd
> 
> [0] 
> http://gotoanswer.stanford.edu/how_to_control_popen_stdin_stdout_stderr_redirection-5609974/
> [1] https://github.com/sni/mod_gearman/blob/master/common/popenRWE.c
> 
> On Tue, Nov 11, 2014 at 5:12 PM, Louis Santillan  wrote:
>> Is this stackoverflow popen2 [0] something like what you're looking for?
>> 
>> [0] 
>> http://stackoverflow.com/questions/125828/capturing-stdout-from-a-system-command-optimally
>> 
>> On Mon, Nov 10, 2014 at 9:12 AM, Kevin Ingwersen (Ingwie Phoenix)
>>  wrote:
>>> Hey.
>>> 
>>> I am working on a small v8 based app. Its just one that lets me design some 
>>> startup and shutdown services with JS. But I wanted to spread it just a bit 
>>> further, and wanted to add a library to it, that:
>>> 
>>> - Runs an external program
>>> - Picks up STDOUT and STDERR
>>> - Returns the exit code.
>>> 
>>> I do not want to use redirection for this case, as I want stdout/stderr 
>>> separately.
>>> 
>>> Does anyone of a simple library to do that? One that does -not- depend on 
>>> Boost, Poco, dlib or anything? Just a simple stand-alone library?
>>> 
>>> Kind regards,
>>> Ingwie
>>> 
>>> --
>>> --
>>> v8-users mailing list
>>> v8-users@googlegroups.com
>>> http://groups.google.com/group/v8-users
>>> ---
>>> You received this message because you are subscribed to the Google Groups 
>>> "v8-users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an 
>>> email to v8-users+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
> 
> -- 
> -- 
> v8-users mailing list
> v8-users@googlegroups.com
> http://groups.google.com/group/v8-users
> --- 
> You received this message because you are subscribed to the Google Groups 
> "v8-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to v8-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.