I launched this command via SSH on a Debian server:

watch --precise -n 1 top -b -n 1 -p 27330 | tail -n 1 | awk "{print \$9}" >> 27330.log &

After a while I quit my terminal. When I connected again the process was still running. Shouldn't the process be killed? I thought that the only way to keep a process running is to use nohup.

migrated from serverfault.com Oct 24 '14 at 22:22

This question came from our site for system and network administrators.


The & at the end of your command makes it run in the background. Therefore, when you quit your SSH session, it will keep running.

Also read https://superuser.com/a/152695/228108 (the comments mainly).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.