Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Capturing the text in a Console Window

by fizbin (Chaplain)
on Oct 13, 2005 at 14:37 UTC ( [id://499917]=note: print w/replies, xml ) Need Help??


in reply to Capturing the text in a Console Window

It is unclear to me what you're trying to do - are you trying to capture text that's already sitting in the console window when your script starts, or are you trying to run a command from inside your perl script and then read what the command spit out to the screen? Note that the first of those two is much more difficult than the second.

Also, if you're trying to capture text already sitting on the console, is your perl script attempting to read its own console, or someone else's? The first of those two tasks is much easier.

--
@/=map{[/./g]}qw/.h_nJ Xapou cets krht ele_ r_ra/; map{y/X_/\n /;print}map{pop@$_}@/for@/

Replies are listed 'Best First'.
Re^2: Capturing the text in a Console Window
by slloyd (Hermit) on Oct 13, 2005 at 16:37 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://499917]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-04-19 10:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found