You are not logged in.

#1 2025-02-26 10:38:31

mr-omid4444
Member
Registered: 2025-02-26
Posts: 2

kgx terminal error

Hello everyone, I have a problem with the terminal and I would appreciate your help.
The problem is that when I run commands that need to be run continuously, for example, the command to run frameworks like Laravel or ReactJS, for example, after executing these commands, they use port 8000 of the system. Now the problem starts here that after canceling those jobs, they are not completely closed. And when we use that command again in the same terminal, port 8000 is still busy and it is automatically executed on port 8001, and this cycle continues. And the next point is that when I use the exit command after closing these jobs, the terminal is closed, but the graphical user of this terminal remains open and I have to manually click on the close app button. Sometimes when I click on the close button, I receive a warning that the closed jobs will be terminated, which will be safely deleted after confirming the jobs. Thank you for sharing your opinion with me so that I can fix this problem. The shell used is GNOME and my terminal is KGX.

Offline

#2 2025-02-26 11:28:23

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,076

Re: kgx terminal error

What exact commands are you running how and where? Most of these should have a --foreground or similar option which will also close them when you interrupt them. I find it unlikely that this is up to your terminal emulator, unless you know it doesn't happen on others.

Last edited by V1del (2025-02-26 11:31:24)

Offline

#3 2025-02-26 20:31:40

mr-omid4444
Member
Registered: 2025-02-26
Posts: 2

Re: kgx terminal error

V1del wrote:

What exact commands are you running how and where? Most of these should have a --foreground or similar option which will also close them when you interrupt them. I find it unlikely that this is up to your terminal emulator, unless you know it doesn't happen on others.

for example npm run dev
and npm start on port 3000
when i stop it and run this command again warning shows up and says port 3000 is already in use npm will auto use port 3001;
so this loop will continues as i run similar commands , and the real problem start when i try to use exit command
after enter exit command terminal close but gui is still open without any information and i need to close it manualy with close button

Offline

Board footer

Powered by FluxBB