ksh – read: no query process

5 Views
Reply
L
Legacy User 1
8/1/2019, 12:32:29 PM

I started to write a shell script in ksh (korn shell) on SunOS version.
I added the below line to prompt and get user input.

read -p "Enter the option:" input_variable

But while executing I am getting the below error and script failed. I already used this type of read command Linux but not working in SunOS. Please provide how to run this read command in SunOS?

./script.ksh[16]: read: no query process

Thanks in advance.

0 Replies

No replies yet. Be the first to share your thoughts!

Leave a Reply

All replies are subject to pre-moderation. Your reply will appear publicly once approved.

S
SPYTM

Experience the pinnacle of digital communication. The ultimate ultra-premium platform designed for those who demand excellence.

© 2026 SPYTM. All rights reserved.