Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-08-2004, 10:02 PM   #1
LQ Newbie
Registered: Oct 2004
Location: New Zealand
Posts: 27

Rep: Reputation: 15
bash scripting: dialog --inputbox

i was making alittle script and i ran into a problem

i had
echo -n "blah blah blah? "
read $so

and i want to do the same thing with. dialog --inputbox
but i dont know how to get the inputed data to be put into $so, the man page didnt really help.
Old 11-08-2004, 10:22 PM   #2
Registered: Apr 2003
Location: denver co
Distribution: redhat9
Posts: 156

Rep: Reputation: 30
ok after some minor research I found that when you
call read it sticks the stdin in to a variable called $REPLY
which you can reasign to $SO
so I did this
echo -n "$SO"
and it worked just fine plus
also you could do a
read so
echo $so
which will also work for you.
also you can set the prompt with -p enter time or what ever

have a nice day


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash scripting help (su ...) shwong Linux - General 1 11-02-2005 12:26 PM
Dialog command not recognized on debian sarge's bash!!! CM019 Linux - Newbie 2 02-13-2005 03:37 PM
Dynamic dialog in bash scripts AndiOliver Programming 3 04-22-2004 02:46 AM
Dialog box scripting.... r_jensen11 Programming 2 01-25-2004 06:40 PM
HELP with BASH scripting atwah Linux - Newbie 6 09-09-2003 01:10 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:55 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration