Buffering output using echo

I use the echo command to output to the terminal while unzipping/untaring
files.
In QNX 4, message appears, the file is unzipped, the next message appears,
the next file is unzipped etc., in nice order.
In QNX 6, nothing happens for sometime, until all files are unzipped, and
then all messages appear together. It seems like they are buffered somehow.
Any way to turn this buffering off?
Thanks
Markus

I should add I’m using grep on top of all this.

“Markus Loffler” <loffler@ces.clemson.edu> wrote in message
news:9kmg2u$ihg$1@inn.qnx.com

I use the echo command to output to the terminal while unzipping/untaring
files.
In QNX 4, message appears, the file is unzipped, the next message appears,
the next file is unzipped etc., in nice order.
In QNX 6, nothing happens for sometime, until all files are unzipped, and
then all messages appear together. It seems like they are buffered
somehow.
Any way to turn this buffering off?
Thanks
Markus

Hi

using RTP for long, i haven’t faced such problem… “tar -zxvf blah.tgz” and
“unzip blah.zip” do their work perfectly without any “buffering” effect that you
mentioned…

please post the commandline you are using.

ps. by any chance are you running this command(s) over remote session/telnet/ssh
etc ?



Previously Markus Loffler said-

I should add I’m using grep on top of all this.

“Markus Loffler” <> loffler@ces.clemson.edu> > wrote in message
news:9kmg2u$ihg$> 1@inn.qnx.com> …
I use the echo command to output to the terminal while unzipping/untaring
files.
In QNX 4, message appears, the file is unzipped, the next message appears,
the next file is unzipped etc., in nice order.
In QNX 6, nothing happens for sometime, until all files are unzipped, and
then all messages appear together. It seems like they are buffered
somehow.
Any way to turn this buffering off?
Thanks
Markus


\


Keep Smiling

Regards

  • mritunjai

It’s related to using grep. Looks like when tar is busy, grep does not get
much processing time, and the input/output gets buffered.
Markus

“Mritunjai” <nospam@newsranger.com> wrote in message
news:OWOb7.1341$NJ6.4608@www.newsranger.com

Hi

using RTP for long, i haven’t faced such problem… “tar -zxvf blah.tgz”
and
“unzip blah.zip” do their work perfectly without any “buffering” effect
that you
mentioned…

please post the commandline you are using.

ps. by any chance are you running this command(s) over remote
session/telnet/ssh
etc ?



Previously Markus Loffler said-

I should add I’m using grep on top of all this.

“Markus Loffler” <> loffler@ces.clemson.edu> > wrote in message
news:9kmg2u$ihg$> 1@inn.qnx.com> …
I use the echo command to output to the terminal while
unzipping/untaring
files.
In QNX 4, message appears, the file is unzipped, the next message
appears,
the next file is unzipped etc., in nice order.
In QNX 6, nothing happens for sometime, until all files are unzipped,
and
then all messages appear together. It seems like they are buffered
somehow.
Any way to turn this buffering off?
Thanks
Markus





\

Keep Smiling

Regards

  • mritunjai

I changed my program to output a lot of backspace characters to overflow
grep’s buffers and it works fine now
Markus

“Markus Loffler” <loffler@ces.clemson.edu> wrote in message
news:9kp097$5j3$1@inn.qnx.com

It’s related to using grep. Looks like when tar is busy, grep does not get
much processing time, and the input/output gets buffered.
Markus

“Mritunjai” <> nospam@newsranger.com> > wrote in message
news:OWOb7.1341$> NJ6.4608@www.newsranger.com> …
Hi

using RTP for long, i haven’t faced such problem… “tar -zxvf blah.tgz”
and
“unzip blah.zip” do their work perfectly without any “buffering” effect
that you
mentioned…

please post the commandline you are using.

ps. by any chance are you running this command(s) over remote
session/telnet/ssh
etc ?



Previously Markus Loffler said-

I should add I’m using grep on top of all this.

“Markus Loffler” <> loffler@ces.clemson.edu> > wrote in message
news:9kmg2u$ihg$> 1@inn.qnx.com> …
I use the echo command to output to the terminal while
unzipping/untaring
files.
In QNX 4, message appears, the file is unzipped, the next message
appears,
the next file is unzipped etc., in nice order.
In QNX 6, nothing happens for sometime, until all files are unzipped,
and
then all messages appear together. It seems like they are buffered
somehow.
Any way to turn this buffering off?
Thanks
Markus





\

Keep Smiling

Regards

  • mritunjai