LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-04-2006, 01:11 PM   #1
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
program output displayed in zenity/ gdialog/ dialog


hi, i haven't played around with gui dialog boxes yet.
(in fact i have to go home to see if i have zenity installed)
anyway can anyone direct me on how to get output from certain programs to display in a dialog box. this info will be constantly updated when run from the terminal.

heres a short example:
Code:
schneidz@lq> temp="hello world l33t h4x0rz chun-li akuma"
schneidz@lq> echo $temp
hello world l33t h4x0rz chun-li akuma
schneidz@lq> for item in $temp
> do
> echo item = $item
> sleep 1
> done
item = hello
item = world
item = l33t
item = h4x0rz
item = chun-li
item = akuma
what i would like is to have it displayed on a zenity pop-up but i dont want the user to have to baby-sit it (like having to click ok to continue to have the next item displayed).

does anyone have any experience with dialog boxes ?
thanks,

ideally the text should be replaced each second. (is that possible ?)

Last edited by schneidz; 12-04-2006 at 02:43 PM.
 
Old 12-05-2006, 02:27 AM   #2
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
I'd suggest using Xdialog for 2 reasond. First, you don't need Gnome installed to use it, just GTK-1.2/gdk. Second. it's been widely used by others so there are lots of examples of usage out there (as well as included in the sources).
 
  


Reply


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
Brain cramp using zenity in script ?? wmcase Programming 2 12-03-2006 02:20 PM
Problem with combining bash with zenity --progress chii-chan Programming 2 05-06-2005 03:12 AM
Getting X output displayed on networked PC neilc Red Hat 1 11-25-2004 04:34 AM
C function to execute a program and return the output of the program ryan.n Programming 4 08-14-2004 10:11 PM
How do I save the output from a program? Fe98 Programming 4 11-10-2003 09:18 AM

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

All times are GMT -5. The time now is 04:15 AM.

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