in reply to Pipe Input delayed
The java programUnlike the java program, read_serial.pl is buffering its output.
Possible solutions:
If it provides such an option, you could configure it so it doesn't buffer its output.
You could change it so doesn't buffer its output. (e.g. By adding $|=1;)
You should be able to fool it by using a pseudo-tty instead of a pipe. See IPC::Run.
Update: Ah! Read it backwards! It's when using a Perl child that it didn't work.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Pipe Input delayed
by yodha (Initiate) on Jun 28, 2011 at 20:57 UTC | |
by jwkrahn (Abbot) on Jun 28, 2011 at 21:02 UTC | |
by ikegami (Patriarch) on Jun 28, 2011 at 21:17 UTC | |
by yodha (Initiate) on Jun 28, 2011 at 23:14 UTC | |
by ikegami (Patriarch) on Jun 28, 2011 at 21:09 UTC |