I have a korn shell script with the following lines:
...
tail -f /tmp/myfile |&
read -p BUFFER
...
The second command fails with the following reason:
read: no query process
From the "read" manpage: "The -p option causes the input line to be taken from the input pipe of a process spawned by the shell using |&.". The same code works fine on HP-UX, AIX and Linux. Any ideas?
$ uname -a
SunOS whale 5.10 Generic_137137-09 sun4v sparc SUNW,SPARC-Enterprise-T5220