I'd like to launch an executable file(application) from a bash script, exit the script, close the terminal and let the application run by itself. How can I do that?
I would like to know the purpose of nohup these days. I ask because I read this  Nohup is short for “No Hangups.” It’s not a command that you run by itself. Nohup is a supplemental command that tells the Linux system not to stop another command once it has started. That means it’ll keep running until it’s done, even if the user that started it logs out. The syntax for nohup is simple and looks something like this: nohup sh your-script.sh &amp; Notice the “&amp;” at the end of the command. That moves the command to the background, freeing up the terminal that you’re working in. Nohup works with just about any command that you run in the terminal. It can be run with custom scripts as well as standard system commands and command line utilities.  With using linux distributions such as SLES 11.4, or RHEL/CentOS 7.x, I can  remote log in to linux over the network via SSH run the simple program below, or any other, doing ./a.out &amp; log out of linux; type exit in the putty SSH terminal my sample program below, or any other including bash, csh, or tcsh shell scripts, run to completion just fine without the need for nohup typing exit in putty to close an SSH session, I would think that qualifies as a logout?  Is there any purpose or value with nouhup today?  Is it a kernel &gt;= 3.x thing? For however long I can remember (kernel &gt;= 2.6) I've never used nohup and have always just use &amp; with no problems. Can someone give me a practical scenario where nohup would be used? #include &lt;stdlib.h&gt; #include &lt;stdio.h&gt;  /*     sample C code, to print numbers to a file named zz.tmp     the numbers 0 to 29 over 30 seconds */  int main ( int argc, char *argv[] ) {    FILE *fp;    int i;     i = 0;    fp = fopen(&quot;zz.tmp&quot;, &quot;w&quot; );     while ( i &lt; 30 )    {       fprintf( fp, &quot;%d\n&quot;, i++ );       sleep( 1 );    }    fclose( fp );    return 0; }  mysleep.sh #!/bin/bash  sleep 1000  On Centos 7.7, optiplex pc login with keyboard &amp; mouse, my account is bash. I do nohup ./mysleep.sh and then control-z.  When typing jobs I see [1]+ Stopped nohup ./mysleep.sh A ps -ef | grep mysleep shows that process id existing, but if I close the terminal window via X in upper right corner, that process goes away so it seems nohup is not working?
Unintentional mouse movements, am I paranoid? How to find out what's accessing a particular hard drive on Windows? PHP function to build query string from array I'm looking for the name of the PHP function to build a query string from an array of key value pairs. Please note, I am looking for the built in PHP function to do this, not a homebrew one (that's all a google search seems to return). There is one, I just can't remember its name or find it on php.net. IIRC its name isn't that intuitive. How do I make log4j clear a log at startup? How do I test a private function or a class that has private methods, fields or inner classes? How do I unit test (using xUnit) a class that has internal private methods, fields or nested classes? Or a function that is made private by having  (static in C/C++) or is in a private () namespace?  It seems bad to change the access modifier for a method or function just to be able to run a test. IndentationError: unindent does not match any outer indentation level When I compile the Python code below, I get      IndentationError: unindent does not match any outer indentation level     import sys  def Factorial(n): # Return factorial     result = 1     for i in range (1,n):         result = result * i     print "factorial is ",result     return result   Why? Conditional expectation of $\mathbb{E}(X - Y | (X, Y)\in\mathcal{A})$ Given two independent random variables $X \sim \mathcal{U}[-1,5]$ and $Y \sim \mathcal{U}[-5,5]$, what is $$\mathbb{E}\{Y - X | X \le 1, Y &gt; X, Y \in [-1,1] \}\,?$$  I managed to compute the respective probability   $$ \mathbb{P}\{ X \le 1, Y &gt; X, Y \in [-1,1] \} = \mathbb{P}(X \le 1) \mathbb{P}(Y &gt; X) \mathbb{P}(Y \in [-1,1]) = 1/3 * 1/2 * 1/5 = 1/30$$  How do I continue from there? Do hit points reset upon each use of wild shape even if the same form's assumed? Let's say I've used wild shape to assume the form of a mammoth that has 126 hit points. I take 26 points of damage, putting me at 100 hit points. If I use my next turn to take a bonus action to exit wild shape then an action to use wild shape to assume the form of a mammoth again, do I now have 126 hit points or 100 hit points? Excel multiple FIND formula -> 683  -> 678  ???  (Doesn't really bother me too much but figured I'd report the bug...) I am trying to capitalize Western Canada or western Canada properly and am wanting a definition for when the "ern" is added as a suffix to a locational distinction of a proper noun.  I believe the capitalization is related to the suffix and am grouping two questions.  After researching on the internet I have found a trend that areas of discrete area become capitalized along with their proper noun   East New York West Hollywood East London (Britain) East Los Angeles   Some locations have "ern" added to their locational modifier.    Web Examples (from government sites):   eastern Canada ( Western Canada ()   All the examples listed contain discrete areas.  The "ern" suffix is used for larger areas, but I am unable to determine when an area becomes large enough. How do I prove that a graph is a topological manifold I'm having problems with that:  Prove that M is a topological manifold.  $f:U \to \mathbb R^k$, U $\subset \mathbb R^{n}$ open, f continuous  M = $\{\left(x,y\right)\in \mathbb R^{n+k} \mid x \in U, y=f(x) \}$  Can anyone help me please? Create a tar archive split into blocks of a maximum size I need to backup a fairly large directory, but I am limited by the size of individual files. I'd like to essentially create a tar.(gz|bz2) archive which is split into 200MB maximum archives. Clonezilla does something similar to this by splitting image backups named like so:  sda1.backup.tar.gz.aa sda1.backup.tar.gz.ab sda1.backup.tar.gz.ac   Is there a way I can do this in one command? I understand how to use the split command, but I'd like to not have to create one giant archive, then split it into smaller archives, as this would double the disk space I'd need in order to initially create the archive. Form action doesn't submit hard-coded variable Tikz won't plot the function properly I tried to plot the following function but it didn't work:  y = 300 + 1000/x + 2.5x.  This is the document, but instead of the plot it only shows the axis.  \documentclass{article}  \usepackage{pgfplots}% This uses tikz \pgfplotsset{compat=newest}% use newest version  \pgfmathdeclarefunction{Function}{1}{%   \pgfmathparse{300 + 1000/x + 2.5}% }  \tikzset{My Line Style/.style={smooth, thick, samples=400}}  \begin{document} \begin{tikzpicture} \begin{axis}[     xmin=0.0,     xmax=250,     ymin=0,     ymax=50,     axis x line=bottom,     axis y line=left,      xlabel= $y$,     ylabel=Cost,      xtick={250},     xticklabels={250},         restrict x to domain=0:250,     ]        \addplot+[My Line Style, color=black, samples at={1,2,3,4,...,249,250}] (\x,{Function(\x)});   \end{axis}  \end{tikzpicture} \end{document} \documentclass{article} Why do close votes expire? I nominated  to be closed as a dup. I see that two other people upvoted my comment, so they might have voted to close it as well. Now, we didn't gather enough votes, and all close votes expired ... and I can't re-vote to close. What is the motivation behind expiring close votes ... especially for close-as-duplicate? Update: Please take into consideration:  Beta Stack Exchange sites have a smaller community, and fewer people with voting privileges Closing as a duplicate is &quot;usually the right thing&quot; IMHO - much less controversial than closing as off topic. After a vote is reset, the original users can't vote again. On a small site, this makes it even harder to get a consensus of five votes. Selenium + FF : How to fix error, Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms? single query to print all the rows whose count is greater than 10 Rectangle with cross on title bar I have installed Ubuntu 14.04 and I think that I have found a bug. When I open terminal and  go to edit profile preferences I get a rectangle with a cross on the title bar. It happened with other applications too. Here are the screen shots: Direction of $d\mathbf{l}$ A solid sphere has charge $q$ and radius $R$. Find the potential at a point a distance $r$ from the center of the sphere where $r&gt;R$, using infinity as the reference point.  My attempt:  From Gauss' theorem we may deduce that $\displaystyle\mathbf{E}=\frac{1}{4\pi\epsilon_0}\frac{q}{r'^2}\hat{\mathbf{r}}$ where $r'$ is the distance of an arbitrary point from the center of the sphere provided $r'&gt;R$.  $V=-\int_\infty^\mathbf{r}\mathbf{E}\cdot d\mathbf{l}$  My question: What is $d\mathbf{l}$? Since we are traversing in the direction opposite to $\hat{\mathbf{r}}$, I think it should be $-dr'\hat{\mathbf{r}}$. But when I use it to find $V$, I get a sign error. Please help!