How can I launch a program from a bash XTerm and run a while loop at the same time?

j4k3@lemmy.world to Linux@lemmy.ml – 22 points –

I want to launch Oobabooga Textgen WebUI from the command line with its serial output. I also want to run a while loop that retrieves the Nvidia GPU memory available and temperature for display on the header bar with a 5 second sleep delay. How do I run both of those at the same time?

16

You are viewing a single comment

as already mentioned, ampersand allows you to "background" a task. but if you'd like the output from your program alongside the loop monitoring system info, consider using a terminal multiplexer like tmux.

on the terminal, this will let you open a "split screen" pane with another shell. you can use hotkeys to create, destroy, or move between views.

1 more...