Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Reply-To: From: "Ralf Hauser" To: Subject: xprompt/xecho without a full XFree86 or X11, ... sought Date: Wed, 26 Mar 2003 18:48:41 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Hi, About 10 years ago, there was a nice little command 'xprompt' that allowed me to get a string into a script without having the user work on a console/terminal window. << #!/bin/bash ANSWER=`xprompt "how old are you?"` xecho The answer is \"$ANSWER\" ! >> win-ssh-askpass.exe does such prompting if the user doesn't mind not seeing the input (masked with "*"s due to its original use for passwords), but perhaps there are better solutions out there? Similarly, xecho can be emulated by writing the text into a /tmp/xecho.$$.html and then starting this with cygstart, but this is quite clumsy and slow (e.g. with Mozilla). Any thoughts? Ralf P.S.: Gilgamesh, I got somebody to translate TAGA Nayuta's README.txt for me (with TAGA's permission http://www.ganaware.jp/S/win-ssh-askpass/) and soon, I'll post it (see previous discussion on Japanese in http://sources.redhat.com/ml/cygwin/2003-02/msg01494.html) Binaries at http://matsu-www.is.titech.ac.jp/~sohda/cygwin/dist/packages/win-ssh-askpass / -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/