Reply to comment

nohup - runs your programs after you log out

The following command will run the script, and then keep running the script after you log out.

nohup ./somescript.sh &

Miracle? No. Nohup just ignores the kill signal, preventing the script from getting the signal. Thus, the script won't exit when you log out.

The interesting thing about the command is that it gives you an idea of how easy it is to write nonterminating programs. You have to do work (or let the library do work) to automatically exit the program when the user exists.

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <b> <dd> <dl> <dt> <i> <li> <ol> <u> <ul> <p> <br> <div> <pre> <code> <img><h1><h2><h3><h4> <blockquote>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

.