Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Accepting user input mid page
Name: Swapan Satpathi Date: May 20, 2003 at 15:29:40 Pacific OS: HP Unix CPU/Ram: pentium/512Mb
Comment:
Hello, I want to accept user input variable in the middle of the page or any specified location not at the starting of the line using read command. If I use read command I have to enter the input a the beginning of the next line.
Name: LANkrypt0 Date: May 21, 2003 at 06:50:13 Pacific
Reply:
I would recommend using tput
For example
#!/bin/ksh echo "what is your name" tput cup 10 10 ; read myname
This would ask, what is your name, then 10 lines down and 10 lines over you would be entering in your response. Its very flexible so you can basically have the user enter in their input anywhere. Play around with it.
Summary: Hi! I have to hide user's input (password) in the interactive shell. I am using 'read' to accept the input and assign it to the variable which later will be used to form command line to request the p...
Summary: Hey guys, I need to create a script that accepts user input of a month and year then displays a calander for that particular month/year. any idea? ...
Summary: Folks, I have a while loop that is taking input from a file while read variable do . . . done < filename.txt However during the loop I am trying to take some user input print "....[y/n]" read $va...