B
blendOS6mo ago
evelyn

Is there a way to log more of my containers' shell output?

I want to log farther back of my shell output for my Debian container, but it only goes far back enough to partially capture the tail-end of a complex install wizard process. Is there any way to get some more of it dumped to a .txt?
29 Replies
#1 mixed number hater
just run it and pipe the output to a file like command blah blah blah > ~/log.txt though if it's a wizard, then that might mean tui, and if that's the case, you'll need something fancier like a terminal recording program
evelyn
evelynOP6mo ago
?
evelyn
evelynOP6mo ago
The output gets cut-off at the top, I don't know how else to explain it, and if I show more of the image it is going to leak my IP. So, uh, please refer to the scroll-bar on the far right?
No description
evelyn
evelynOP6mo ago
like after a certain number of lines, it forgets or maybe doesn't forget, but rather just doesn't let me scroll up farther
#1 mixed number hater
yeah that's just that whatever terminal you're using doesn't remember as many lines as you want you could do some kind of bash piping/redirection thing, but given you probably want to see what's being printed while you use it, that would require some more advanced stuff or you could use some terminal recorder actually, i'm dum lol, it's simple: command blah blah blah | tee log.txt
evelyn
evelynOP6mo ago
im using the terminal that BlendOS's 'system settings' container management utility (the one from the ▶️ button) forces me to use, because I don't know if it's possible for ▶️ to use a more comfortable and configurable terminal like Konsole or something...
No description
Valkyrja
Valkyrja6mo ago
@evelyn, you've gained the level 1
evelyn
evelynOP6mo ago
That doesn't mean anything to me what does command refer to? All past lines in the output?
#1 mixed number hater
command blah blah blah is just whatever command you're trying to run instead of just running your command, you can "pipe" its output into tee, which will both print it and log it to log.txt
evelyn
evelynOP6mo ago
Oh the command was already ran hours ago to both install and initiate the install wizard, so we are far past that point uhhh
#1 mixed number hater
so you want to go back and see the log for the thing you already ran?
evelyn
evelynOP6mo ago
it's not a repeatable process without sending all of the applications files to my systems garbage bin, or using the uninstall wizard, both of which undo all of my progress that I have made today Yeah I wish that I could see all of the output, including all of the download bars and progress bars that the install wizard did
#1 mixed number hater
your only hope is to see if that program kept a log itself somewhere
evelyn
evelynOP6mo ago
without leaking my IP, heres an example of what the install wizard was outputting in cli
No description
evelyn
evelynOP6mo ago
autodesk fusion 360 on Linux is tricky buisiness, installing it successfully is an accomplishment. I have more confidence in my ability to do a level 4 Gentoo installation and I haven't even done that before.
#1 mixed number hater
well i'm pretty sure it's a konsole window, so if you're really lucky, maybe konsole actually remembers it, and if you open another konsole window and increase the max lines kept (if that's even configurable), then maybe it'll show what was there before that's the only thing i can say that might help
evelyn
evelynOP6mo ago
it's not Konsole sadly
#1 mixed number hater
are you sure it's not just a konsole window that just opens straight into the container?
evelyn
evelynOP6mo ago
BlendOS opens something else, something lacking the tabs and features of Konsole, something that needs to be clicked with your mouse before you can start typing into it, even when alt+tabbing into it...
#1 mixed number hater
hm idk i never used the gui
evelyn
evelynOP6mo ago
I am positive it is not konsole
No description
#1 mixed number hater
yeah i have no idea :p well uh all you can do is google and see if that thing has a log anywhere maybe search your filesystem for .log files or something
evelyn
evelynOP6mo ago
if BlendOS used the users term emu of choice to open containers with, I could just configure Konsole to keep like 100,000 lines, which would be more than enough to scroll all of the way up to where I very first pressed enter on the command to install and initiate the install wizard. I've configured Konsole to keep a huge amount before. It's really really handy. Wish that it was an option here.
#1 mixed number hater
tbf you could've also just done blend enter <container name> iirc, if you were concerned about it but yeah that would be best
evelyn
evelynOP6mo ago
I didn't have the foresight to predict that this would be an issue.
#1 mixed number hater
but i don't do the gui at all so :p
evelyn
evelynOP6mo ago
could not have known that the install wizard output was going to be exactly 776 lines long which uh, is um, only the part that was kept so its longer than that and the terminal emu only keeps roughly ~800 by default which is not good enough for what I am doing and totally screwed me over to basically scrap the whole installation and start over possibly :(
Asterisk
Asterisk6mo ago
user shell user shell <your container> You can run that in any terminal you want blend :sobbingpuddle:
Asterisk
Asterisk6mo ago
No description

Did you find this page helpful?