Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

When output contains lots of lines, zenity --info --text doesn't make it scale-able, and zenity --text-info only accept output from a file.

What can I do now? Maybe other zenity like utility can help?

share|improve this question

1 Answer 1

Not sure what you mean with:

and zenity --text-info only accept output from a file

Here is a command producing many lines of output:

ls -l /usr/bin | wc -l
1726

You just pipe it to zenity:

ls -l /usr/bin | zenity --text-info --height=500 --width=400

or:

zenity --text-info --height=500 --width=400 < <(ls -l /usr/bin)

The result is definitely a scalable message box:

enter image description here

share|improve this answer
    
works great for me! –  MountainX Jun 20 '13 at 17:50

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.