473,320 Members | 1,883 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

How do i run exec and catch stdio and stderr in a local string vairable(not a file) ...

How do i run exec and catch stdio and stderr in a local string vairable
(not a file) ...

Thanks very very much,
Jim
Jul 27 '05 #1
4 6115
More specifically:

i am calling system("....something...") ... and i would like to capture
stderr and stdout in seperate variables ...

Jim
Random Task wrote:
How do i run exec and catch stdio and stderr in a local string vairable
(not a file) ...

Thanks very very much,
Jim

Jul 27 '05 #2
In article <aa*******************@news20.bellglobal.com>, Random Task
<Ra****@Task.be> wrote:
More specifically:

i am calling system("....something...") ... and i would like to capture
stderr and stdout in seperate variables ...

Jim
Random Task wrote:
How do i run exec and catch stdio and stderr in a local string vairable
(not a file) ...

Thanks very very much,
Jim


You have asked a Frequently Asked Question, and the answer may be found
with

perldoc -q capture

FYI: this newsgroup is defunct. Try comp.lang.perl.misc in the future.
----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= East/West-Coast Server Farms - Total Privacy via Encryption =---
Jul 28 '05 #3
[Please do not top-post full-quote. That is considered quite rude by many
readers]
Random Task wrote:
How do i run exec and catch stdio and stderr in a local string
vairable (not a file) ...

More specifically:

i am calling system("....something...") ... and i would like to
capture stderr and stdout in seperate variables ...


You would do it the way as described in the documentation of the function
that you are using (perldoc -f system, third paragraph, third sentence) or
the way it is described in the FAQ (perldoc -q stderr; perldoc -q "with
systen").

jue
Jul 28 '05 #4
Thanks all!

Jürgen Exner wrote:
[Please do not top-post full-quote. That is considered quite rude by many
readers]
Random Task wrote:
How do i run exec and catch stdio and stderr in a local string
vairable (not a file) ...


More specifically:

i am calling system("....something...") ... and i would like to
capture stderr and stdout in seperate variables ...

You would do it the way as described in the documentation of the function
that you are using (perldoc -f system, third paragraph, third sentence) or
the way it is described in the FAQ (perldoc -q stderr; perldoc -q "with
systen").

jue

Jul 28 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: JohnLH | last post by:
Hi, I am having an issue with the LOAD DATA LOCAL FILE command on the latest 3.0.9 JDBC Driver. The command works on Windows, but doesn't seem to work on OSX and Linux. The error that I get on...
0
by: Daniel | last post by:
Is it possible to retain local file system read, write, delete access while impersonating for access to a remote drive in a different domain? I need to be able to move files from a local computer...
20
by: Steve | last post by:
I have a web app that needs to parse through a file that is located on the client machine. I get the file string from a query string & then parse it. It is working fine on my development box but...
5
by: ashepster | last post by:
I can read a local file with fopen("myFile.php"); However this gives me the source of the file (i.e. php code). I want to get the results of the file after it has been evaluated (i.e. HTML)....
1
by: Drew | last post by:
Can I construct an HttpWebRequest with a local file instead of a URL? It seems like I remember doing this in Java with something like "file:\\\myfile.txt" in place of the URL. Thanks, Drew
5
by: acord | last post by:
Hi, Can anyone tell me how to use XMLHTTPRequest or MS ActivcXObject open a local file? Thanks Sam
6
by: vasudevram | last post by:
Hi group, Question: Do eval() and exec not accept a function definition? (like 'def foo: pass) ? I wrote a function to generate other functions using something like eval("def foo: ....") but...
5
by: timnels | last post by:
I have a web browser control that I'd like to point at a HTML file in my installation directory. I am doing something like: string path = Path.GetDirectoryName(...
8
by: martinsmith160 | last post by:
Hi everyone I am trying to create a simple wpf program that allows a user to select an image from a combo box and then where they click on th screen draw that image at the mouse co-ordinates. The...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.