TestingDocs.com
Software Testing website
  • Automation
    • Selenium
    • JBehave Framework
  • Tutorials
    • MySQL Tutorials
    • Testlink
    • Maven
    • Git
  • IDEs
    • IntelliJ IDEA
    • Eclipse
  • Flowcharts
    • Flowgorithm
    • Raptor
  • About

Linux commands

nohup Linux Command with Examples

Overview

In this tutorial, we will learn nohup Linux Command. nohup stands for no hang-up signals. We use this command to run servers in the background ( & ) and continue to run even after exiting the Terminal or Konsole.

nohup Linux command

We use this nohup to run a command and ignore hang-up signals. Basically, we are making the command that we run immune to hang-up signals. Additionally, we can redirect or append the output to ‘nohup.out’ file.

To know the help documentation, type the help command switch or the man page for the command.

$ nohup –help

To see the man page, type:

$ man nohup

 

nohup linux command

Examples

# Starting Application Server

Let’s see an example usage of the command. We will use the nohup command to start the JBoss application server and redirect the output to the nohup.out file.

$ nohup ./standalone.sh & > nohup.out

standalone.sh is the JBoss standalone server startup script to start the server in standalone mode. & will make the application server process run in the background. nohup will make the server immune to signals. We can notice that the server continues to run even if we exit the Terminal or even if we log out from the system.

 

nohup JBOSS server start

 

$ tail -f nohup.out 

With this command we are just checking the JBoss application server boot process for any Errors or Exceptions during the startup process.

# Run Selenium Grid in Background

https://www.testingdocs.com/run-selenium-grid-in-background-on-linux/

# Spin Docker containers

Spin multiple Docker containers with nohup command using Docker compose tool. The containers run in the background immune to signals.

More Information:

Docker Compose tool:

https://www.testingdocs.com/docker-compose-tool/

Selenium Grid with Containers:

https://www.testingdocs.com/scalable-selenium-grid-with-docker-compose/

 

Docker Compose with nohup

That’s it.

—

Linux Basic Commands Tutorial page:

https://www.testingdocs.com/linux-basic-commands-tutorial/

More Information on Ubuntu Linux:  https://ubuntu.com/

Related Posts

sudo auth log entry

Linux commands /

sudo Linux Command with Examples

Common File Commands in Linux

Linux commands /

Common File Commands in Linux

su linux command

Linux commands /

su Linux Command

ls linux command

Linux commands /

ls Linux Command with Examples

touch create file

Linux commands /

touch Linux Command

‹ who Linux Command› mv Linux Command

Recent Posts

  • Install RAPTOR Avalonia on CentOS
  • Download RAPTOR Avalonia Edition on Windows
  • npm doctor command
  • Print Triangle Pattern Flowchart
  • RAPTOR Editions
  • Flowgorithm Conditional Breakpoint Statement
  • Flowgorithm Read Numbers from File Example
  • Search Text File Flowchart Example
  • Flowgorithm Turtle Graphics Symbols
  • Draw Circle using Flowgorithm Turtle

Back to Top

Links

  • Contact
  • Privacy Policy
  • Cookie Policy

www.TestingDocs.com

Go to mobile version