Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Ways to capture output stream of the process executed with exec call ?

Reply
Thread Tools

Ways to capture output stream of the process executed with exec call ?

 
 
Googy
Guest
Posts: n/a
 
      01-26-2007
Hi,

I need to capture output of the process executed with exec or other
eqavalent calls.

Thanks.

 
Reply With Quote
 
 
 
 
Robert Klemme
Guest
Posts: n/a
 
      01-26-2007
On 26.01.2007 09:47, Googy wrote:
> I need to capture output of the process executed with exec or other
> eqavalent calls.


Look for popen() and variants. Alternatively you can use backticks:
s = `ls -lF`

Kind regards

robert
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Process p = Runtime.getRuntime().exec(String cmd) not reading input stream on Linux nmlaney@gmail.com Java 4 01-12-2010 11:38 AM
Best way to capture output from an exec'ed (or such) script? exscape@gmail.com Python 6 08-05-2007 04:56 PM
exec dynamic script, capture output, but see vars of caller? Stan R. Perl Misc 1 12-01-2006 04:05 PM
Same ASP page executed 2 ways produce different results...strange Benman ASP General 0 12-09-2005 06:47 PM
Exec/System call with spaces in exec path problem ... Random Task Perl Misc 12 12-04-2005 10:03 AM



Advertisments