in reply to Re: Re: Help!: Open2 Hangs on Windows (doomed)
in thread Help!: Open2 Hangs on Windows
Why not simply pass the name of the file to the command and let it read from disk, and the then pipe the input back to you? Why complicate things?
I'm also intrigued by why, given tye's educational explanation above, your method would work on Linux and not on Windows. The only rational explanation I can think of is that Linux uses bigger buffers on it pipes than windows, and the file you are testing with succeeds in fitting entirely within the buffer on the former so never blocks.
Have you tried this on Linux with a bigger input file?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Help!: Open2 Hangs on Windows (doomed)
by graff (Chancellor) on Sep 05, 2003 at 03:48 UTC | |
by tye (Sage) on Sep 05, 2003 at 05:11 UTC | |
|
Re: Re: Re: Re: Help!: Open2 Hangs on Windows (doomed)
by coppit (Beadle) on Sep 11, 2003 at 21:25 UTC |