开发者

a sufficient way to show logs in a graphical interface using whiptail in bash

开发者 https://www.devze.com 2022-12-22 04:19 出处:网络
I\'m trying to represent log files via the whiptail\'s infobox. The only set开发者_运维技巧back is that I don\'t want to scroll down through hundreds of log lines. Is there a way to make the scroll ba

I'm trying to represent log files via the whiptail's infobox. The only set开发者_运维技巧back is that I don't want to scroll down through hundreds of log lines. Is there a way to make the scroll bar go to the end of the box automatically?

Thanks for the help.


there seems no option for whiptail to do that. Im happy to know as well if someone can make it. However, maybe you want to try

vim -M + <filename>
  • not possible to make change in the file
  • start at the end of the file
  • get benefit from VIM nice features. e.g. searching, navigation ...


If you use dialog instead of whiptail, you can use --tailbox or --tailboxbg. They work like tail -f. You can't scroll up and down, but neither does whiptail's infobox.

0

精彩评论

暂无评论...
验证码 换一张
取 消