Clear Buffer

Jumjum
Jumjum Member
edited July 16, 2021 in TeamSite #1
I have a script that I want all the outputs to be printed on the screen. The problem I am having is that its being buffered. Has anyone found a way to flush the buffer so that whats read is outputted when a sub routine is ran it outputs only at that time. So more real time outputting.

I have tried doing the following at the top of my scripts and nothing has worked.

$| = 1; AutoFlush the buffer and I have tried
STDOUT->autoflush(1);

Thanks,
Jum

Comments

  • What is the source of the output you are trying to send to the screen? If it is another program, that other program may be buffering its output.

    --fish
    (Interwoven Senior Technical Consultant)
  • I am trying to output the print statements.
    For example: print "Compile was succesful. Now deploying <br>";

    I have a bunch of them in sub routines.

    Thanks,
    Jum
TeamSite Developer Resources

  • Docker Automation

  • LiveSite Content Services (LSCS) REST API

  • Single Page Application (SPA) Modules

  • TeamSite Add-ons

If you are interested in gaining full access to the content, you can register for a My Support account here.
image
OpenText CE Products
TeamSite
APIs