LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-16-2005, 09:54 AM   #1
ziox
Member
 
Registered: Apr 2004
Distribution: RedHat, Fedora, Suse, Debian, Gentoo, Mandrake
Posts: 132

Rep: Reputation: 15
dialog


Hello..
#!/bin/bash
dialog --title "add-users to your system" --backtitle "User-Grouping-Utility"\
--inputbox "enter a username pattern" 7 50 2> /tmp/file1.$$\
--inputbox "Enter a number" 7 50 2> /tmp/file2.$$
#==================================================

i've a problem with dialog command that is when i open more than

two --inputbox to take input from a user then redirect it to

2> /tmp/file1.$$ or any file name

then

2> /tmp/file2.$$

to take them later as variables to use with a loop or something

it just redirect the two inputs to just 1 file like that

input1input2 not even in a new line

is there any hidden option to use to pass this problem

or even have an inputbox with multiple lines
 
Old 03-16-2005, 01:09 PM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
You could just open another dialog with an input box and add --keep-window to the first dialog
 
  


Reply



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
Dialog box help!!!!!!!! HopelessLinuxNewbie Fedora 1 08-24-2005 11:48 AM
Dialog cookie_ie Programming 5 04-11-2005 01:48 AM
GTK2: About Dialog mandeltuete Programming 2 04-09-2005 12:23 PM
Dialog phatbastard Linux - Security 3 12-13-2004 09:48 PM
bootup dialog pizuka3400 Mandriva 1 08-05-2004 06:59 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:44 PM.

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