Capture Output in Real Time

Help with setting up and configuring custom user tools in UltraEdit (based on command line input)

Capture Output in Real Time

Postby saturn » Fri Oct 08, 2004 10:01 pm

Is there any way to have output from Tools show up in the output window while the tool is still running? I have a Perl script that I use to do a complicated compile process and the major downfall of adding this to UltraEdit's project tool is that I have to wait for the script to complete before the output is displayed in the output window. Thanks for the info.
User avatar
saturn
Newbie
 
Posts: 2
Joined: Thu Oct 07, 2004 11:00 pm

Re: Capture Output in Real Time

Postby toddm » Mon Oct 11, 2004 8:12 am

Have you tried checking "Show DOS Box"? I believe that should show the real time output in a DOS window.
User avatar
toddm
Advanced User
Advanced User
 
Posts: 83
Joined: Wed Jul 28, 2004 11:00 pm

Re: Capture Output in Real Time

Postby rpardee » Fri Jan 14, 2005 3:53 pm

I've got the same problem (tho I'm using Ruby rather than perl) & I'm finding that showing the DOS box does *not* help. The box is empty until my script finishes running, and then the output gets flushed to the box, immediately after which it disappears.

Hmmm... Maybe I need to call .flush on the stdout stream or something...

Yup--that does it:

$stdout.flush

That's a pain, but I guess I can redefine Kernal#puts so it flushes after each call...
User avatar
rpardee
Basic User
Basic User
 
Posts: 14
Joined: Sun Sep 19, 2004 11:00 pm

Re: Capture Output in Real Time

Postby saturn » Fri Jan 14, 2005 4:30 pm

Right now, I use the "Show DOS Box" thing because I have to. I have STDOUT autoflush by using a perl command inside my Perl script so that's not a problem for me. It's just annoying to have to have the seperate box is all while other program can display right in the output window in real time. I posted this capability on the New Features section and they said that they were looking into it so that's good.
User avatar
saturn
Newbie
 
Posts: 2
Joined: Thu Oct 07, 2004 11:00 pm


Return to Custom User Tools/Tool Configuration