Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Re: Open a second DOS window (a working possibility)

by BrowserUk (Patriarch)
on Oct 09, 2003 at 23:26 UTC ( [id://298142]=note: print w/replies, xml ) Need Help??


in reply to Re: Open a second DOS window (a working possibility)
in thread Open a second DOS window

Try this

#! perl -plw use strict; use Win32::Console; BEGIN{ my $c=new Win32::Console( STD_ERROR_HANDLE ); $c->Free(); $c->Alloc(); } END{ print 'Paused'; 1 while sleep 1; }

Name that as Errcon.pl and then do

perl -e"open F, '| perl ErrCon.pl' or die $!; print F 'Hello world', $ +_, $/ for 1 .. 100"

You'll need to use ^Break to end the progam.


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (9)
As of 2024-03-28 14:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found