Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ksh: "read -p" fails with error "no query process"

807557May 14 2009 — edited May 18 2009
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 15 2009
Added on May 14 2009
1 comment
3,408 views