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.
In reply to Re: Pipe Input delayed
by ikegami
in thread Pipe Input delayed
by yodha
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |