[TxMt] Re: Problem with real-time presenting standard output (cout) in HTML output

chris my2ndaddress at gmail.com
Sun Mar 21 17:15:14 UTC 2010


maybe try:

 if ($ENV{'TM_PID'}) { $| = 1 };

at the start of your script. Which I ripped out of another thread:

Alex Ross <z-textmate at lasersox.net>
date    Mon, Mar 8, 2010 at 3:46 AM
subject [TxMt] Re: Interactive input in Textmate (for Perl)

-chris


On Sun, Mar 21, 2010 at 4:46 PM, hugos <kluczka at o2.pl> wrote:
>
> I wrote a program in C++ which does some long calculations. For information
> purpose it has a "cout" function which tels me about a progress of
> evaluation.
> I'm used to compile my program via TM with my own boundle-command script
> which looks like that:
> ------------------------------------------------------------
> echo "<html><body><pre>"
>
> make | pre
>
> find_name="grep 'NAME=' ./makefile | cut -c 6- "
> cmd= `eval $find_name | awk '{print "./"$0}'`
> $cmd
>
> echo "</pre></body></html>"
> ------------------------------------------------------------
> My problem is that the standard output (text that "cout" presents) is shown
> at once after program is finished (but non during program is running) so I
> don't see progress of calculation.
>
> Is there a way for presenting standard output in these case (in real-time)?
> --
> View this message in context: http://old.nabble.com/Problem-with-real-time-presenting-standard-output-%28cout%29-in-HTML-output-tp27976999p27976999.html
> Sent from the textmate users mailing list archive at Nabble.com.
>
>
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate



More information about the textmate mailing list