Thursday, April 18, 2024
8
rated 0 times [  8] [ 0]  / answers: 1 / hits: 1219  / 1 Year ago, wed, november 16, 2022, 8:01:49

Possible Duplicate:

How to clean launch a GUI app via the Terminal (so it doesn't wait for termination)?






For example, if I want to run Netbeans from the CLI, I can type:



$ /usr/local/netbeans-7.0/bin/netbeans


But by doing this, the command line is rendered useless until Netbeans has been shut down. Hitting CTRL+C to end the process will kill Netbeans and return the command line to the user but how do you launch applications while retaining control of the command line? Is it possible to run a task in the background while still using the command line?


More From » command-line

 Answers
6

You can put nohup in front of it and & behind it.



Nohup will take care of all the messages created by the command to not show up.
The & will actually fork the command.


[#44278] Thursday, November 17, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ainbby

Total Points: 184
Total Questions: 115
Total Answers: 112

Location: Colombia
Member since Thu, Sep 29, 2022
2 Years ago
ainbby questions
Thu, Mar 23, 23, 10:26, 1 Year ago
Wed, May 10, 23, 00:10, 1 Year ago
Fri, Apr 15, 22, 10:11, 2 Years ago
;