LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Move a command to background. (https://www.linuxquestions.org/questions/linux-newbie-8/move-a-command-to-background-4175613116/)

hack3rcon 09-02-2017 08:45 AM

Move a command to background.
 
Hello.
I like to move a command to background and I found "bg" and "fg" commands but I like when I move command to background then its running and not show me the result suddenly when its finished. For exmaple:
Code:

$ sudo nmap -A IP
Starting Nmap 6.47 ( http://nmap.org ) at 2017-09-01 18:04 PDT
^Z
[1]+  Stopped                sudo nmap -A IP
$ bg
[1]+ sudo nmap -A IP &

In above example, when the nmap command finished then it show the result in the terminal suddenly.

Thank you.

jeremy 09-02-2017 09:19 AM

Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.


All times are GMT -5. The time now is 03:23 PM.