|
-
March 26th, 2001, 10:27 AM
#1
Capturing command output.
I would like to run commands on the Command Prompt window and capture their output. What is the best way to do that ? (Shell function doesn't work for me, cause it doesn't return the output).
Yaron.
-
March 26th, 2001, 10:42 AM
#2
Re: Capturing command output.
You can try re-directing to a output file then parsing the file..
shell "MYDOSAPP.EXE > RESULT.TXT"
then open RESULT.TXT. it's crude but it may work for you.
-
March 27th, 2001, 02:38 AM
#3
Re: Capturing command output.
Check "Capturing the Output of a MS-DOS Program" at
http://www.**************/ArticleBank...ID=ArticleBank
JD
-
March 27th, 2001, 04:47 AM
#4
Re: Capturing command output.
Redirecting the output to a file works if the command executes fully without further input, but what if I want to capture the output of a complete FTP session ? That involves reading process output throughout the entire session, and not just at the end of it. I want to be able to read the output at the moment that it's sent out , and not at the end of the session.
Something that is similiar to PERL's Expect module.
Know how I can do this?
Yaron.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|