View Single Post
Old 05-11-2023, 01:59 AM   #982
booksRfun
Junior Member
booksRfun began at the beginning.
 
Posts: 2
Karma: 10
Join Date: May 2023
Device: LibraH2O
Quote:
Originally Posted by booksRfun View Post
Hello, I'm trying to view a log file via the NickelMenu, but the pop up display is too short. This is what I'm using:

menu_item :main :Show log :cmd_output :10:/bin/cat /mnt/onboard/mylog.log

This command works, but it cuts off my log file after 12 or so lines. The file is about 25 lines long, but it would be nice to view a log file of arbitrary length, for example via a scroll bar. Is it possible to do this?

I also tried opening the file with the browser using the address
file:///mnt/onboard/mylog.log
but it didn't work.
FYI for anyone who's wondering: I renamed the file to mylog.txt and now it's readable in the browser. Solution:

menu_item :main :Show log :nickel_browser :modal:file:///mnt/onboard/mylog.txt
booksRfun is offline   Reply With Quote