|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
Hi All,
I'm writing a script that contain dialog box (yes/no). I want to read from an input file. for example : myscript < input file Does anyone knows what should the input file contain to answer the dialog box? Here is the code: #!/bin/ksh dialog --yesno "This will install : \nHeloo All \nPress Yes to continue " 7 45 if [ $? = "1" ]; then echo "Abort process" exit 1 else echo "Start install" fi Basically i need to answer the dialog box automatically. Thanks for your help. ![]() |
|
#2
|
|||
|
|||
|
A single newline (i.e. an empty line)
M.
__________________
-- Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more. |
|
#3
|
|||
|
|||
|
Hi,
I tried it,and it's not working.... Do you have any idea? Thanks, |
|
#4
|
|||
|
|||
|
Odd, because this was how I tested it:
Code:
$ echo -en "\e"| dialog --yesno "This will install : \nHeloo All \nPress Yes to continue " 7 45 ; echo $? 255 $ echo -en "\n"| dialog --yesno "This will install : \nHeloo All \nPress Yes to continue " 7 45 ; echo $? 0 $ Does this not work either for you? M. |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > Dialog box problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|