I am using Vagrant and Virtualbox running a virtual instance of Ubuntu. Every time I use the following command "exec /vagrant/build/test_gui" the logs and output of that program show for a split second (not long enough to even try to read the text) before clearing the terminal and displaying the login once again. (pictured below) I am fairly new to all of these systems and would like to know how to stop this from happening so I can see the output of my program within the virtual machine's terminal? When I use vagrant ssh or vagrant ssh -- -X, and run the same command, it returns an error regarding not being able to find a display. I am aware this is probably what is resetting the terminal, and I am working on fixing this, but it is rather secondary- what I need is for my terminal to not reset every time there is an error! Is this possible?
Terminal with the following text:
Ubuntu 18.04.6 LTS ubuntu-bionic tty1
ubuntu-bionic login:
![enter image description here](https://i.stack.imgur.com/CpYYk.png)
Also, because I cannot seem to find an answer anywhere on the internet, is "exec" the way I should be running executable?
I cannot seem to figure out how to both make and also run executables in this reference environment.
Pls help.
Edit.
Fixed this- Had to reset and redo environment variables, amongst other things. Unrelated BSODs in the past week seem to have corrupted a bunch of stuff, thought i got it all; guess not. Will close when i figure out how to