Detach from spring-boot screen in ubuntu [closed] - spring

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I am running a spring-boot project by using following command
spring-boot:run
It's running perfectly.My question is how to detach from that screen?
I have tried Ctrl+A followed by D. It's not working.
If I close the terminal the application is also shutting down.
I have tried also Ctrl+A followed by Ctrl+Z. It's also not working.It's stopping the application by force not detaching.
Any other ways?

Best thing you can do is run the command in background and then take a look at log file separately. As Madusanka said, you can run in background by adding '&' at the end of the command
spring-boot:run &
Else you can tail it to a file,
spring-boot:run >> /tmp/log.txt &
or, as Kryger says, user CTRL+Z to run in background and type bg.

Related

I can't run an exe file completely hidden [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I tried to run a program called MSIAfterburner with no windows
But nothing works
I tried
Quiet.exe
Nircmd.exe
I tried some python scripts and JavaScript & Powershell and VBS. And every time it was showing the window of the program
Can somebody help me?
Neither quiet.exe nor nircmd.exe come with windows by default. I believe this MSIAfterburner program you are referring to is a graphics overclocking utility, which is a windows application, as opposed to a console application.
Therefore, if you for whatever reason want to run it without a window, the easiest way I can think of would be to launch the program in a different session using psexec -i 0 (run it as admin) from here.
If you want to run it without a window without admin privileges, the best I can think of would be to use the winapi ShowWindow(handle_to_the_app_main_window, SW_HIDE).

How to Exit An App in Terminal While Leaving it Running in Background [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I learned how do to do this in my Linux class last year, but can't for the life of me remember how to do it. I've google searched probably about 30 different combinations of words to try to find out how, but nothing is turning up the correct search.
I'm trying to recall how to close an application (Like pico or emacs) and leave it running in the background.
Additionally, it might be nice to know how to pick that app back up where I left off, which I never learned. Any help would be much appreciated.
When using Bash and some other shells, you can use Ctrl+Z suspend a program then run "fg" to bring it back to the foreground. If you want the program to continue running in the background, typing "bg" will resume the process. If the process prints any output while it's in the background, your display will probably end up being mangled.
For simple commands, instead running your application directly, call it using nohup like this:
nohup ./myScript.sh &
Or alternatively for something like complex like emacs, you can use screen.

Is there a way to make the taskbar blink from the terminal? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I like to let my builds run in the background while I continue problem solving my code, but I find it annoying to not know when my build has finished. I already know how to play a sound after a build is done, but was wondering if there is another way to approach this problem.
Is it possible to make the taskbar blink from the terminal? That way I could use it at the end of my build scripts and I would get a friendly blinking task bar icon to alert me.
Desktop environment is gnome
http://www.stealthcopter.com/blog/2010/02/utilising-the-notification-system-in-kde-or-gnome-in-bash-scripts-ubuntu-9-10-linux/
For gnome:
sudo apt-get install libnotify-bin
then
notify-send "notification title" "notification text"
From my testing, supplying -u critical seems to give it an infinite timeout.

Detach running programe from bash [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I'm often in the situation that I run a linux task but then I have to leave the computer or shutdown the notebook, and the task I ran from putty has not finished yet.
Is there a way of I can quit putty and leave the process running 'til it's finished?
I know I can use screen etc, but now I already started the command w/o screen.
(please don't bother too much I didnt directly ask on superuser, serverfault or unix SO.)
Press Ctrl-Z to put the command to background.
Run bg to run it from being suspended.
Then run disown to disown the process from the parent.
It actually also depends on how your command works. Some command exits when it loses its terminal. If that's the case, you can really only just run it with screen or use nohup command </dev/null >/dev/null 2>&1 &.
One way to run it with screen could be screen -dm command.

Use "nohup" to run "top" command in background [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I have problems in using nohup to run top command in the background. First, I run it locally, as
nohup top &
it complains in nohup.out with text top: failed to get tty. My ultimate goal is to run top on remote machine, like
nohup ssh -t user#hostname top &
currently, the above command also fails with
Pseudo-terminal will not be allocated because stdin is not a terminal.^M
TERM environment variable not set
Any ideas?
PS: I run this command to ping machineB from machineA. machineA is always alive, but not not always logged in.
Have you tried the -b (batch mode) switch of the top command?

Resources