Text input boxes with scripts and KDE

Roger Oberholtzer roger
Mon May 17 11:39:28 PDT 2004


On Mon, 28 Oct 2002 10:17:33 -0500
Joel Hammer <Joel at hammershome.com> wrote:

> I am writing some bash scripts. They will run in the background and when
> they detect certain conditions they will activate and do certain useful
> things.
> 
> I would like to be able to let these scripts send popup messages to the
> user and to allow the user to enter text for the program to process.
> 
> I am using X windows and KDE.
> 
> Is there a way to do this? If not with bash, can perl do this?

I personally would use tk, which is en extension to tcl.
However, I believe that there is a perl/Tk, providing the commands, but
accessable from perl.

A command something like:

	message .msg -message "Wake up" -type alert -icon question

pops up a message box of one of many types.

Check Perl/Tk. If you are doing this from bash, why not use Tcl? Still, the
message command is the same from both languages.

I bet if Tcl/Tk is installed on your distro (usually is), 'man message'
gives some info.

-- 
+============================+===============================+
| Roger Oberholtzer          |   E-mail:        roger at opq.se |
| OPQ Systems AB             |      WWW:  http://www.opq.se/ |
| Erik Dahlbergsgatan 41-43  |    Phone: Int + 46 8   314223 |
| 115 32 Stockholm           |   Mobile: Int + 46 733 621657 |
| Sweden                     |      Fax: Int + 46 8   302602 |
+============================+===============================+



More information about the Linux-users mailing list