I have a script in a folder:  /home/ubuntu/jasperreports-server-cp-6.3.0/ctlscript.sh   I need this script to run every time the server starts. Usually the server shuts down on Friday evenings and starts on Monday morning. What do I need to do in order to make this happen?.  How I manually start the script:  I will ssh to the server, and then go to this location /home/ubuntu/jasperreports-server-cp-6.3.0  and then run ./ctlscript.sh* start command manually.  But I am unable to start this script at the server start on Monday automatically.   I tried using rc.local , and also creating a script in /etc/init.d, I did follow this but it didn't work either .  Does anyone have any other suggestions? Or is my procedure wrong?
How can I run scripts automatically when Ubuntu starts up so I don't have to run them manually after startup?
Random bits of my chat die and come back to life during the day Let $(x_n)_{n=1}^{\infty}$ be a sequence such that $|x_{n+1} - x_n| &lt; r^n$ for all $n \geq 1$, for some $0 &lt; r &lt; 1$. Prove that $(x_n)_{n=1}^{\infty}$ is a Cauchy sequence.  I understand that a Cauchy sequence means that for all $\varepsilon &gt; 0$ $\exists N$ so that for $n,m \ge N$ we have $|a_m - a_n| \le \varepsilon$. But this one is really giving me a headache.  I tried doing something like: let $ m &gt; n$. Therefore $x_n - x_m$ =  $(x_n - x_{n-1}) + (x_{n-1} - x_{n-2}) + ... + (x_{m+1} - x_m) $ and then somehow using the triangle inequality to compute some sum such that $x_n - x_m$  &lt; sum which would be epsilon?  any help is appreciated, thank you. Theorem environment with hanging indentation I would like to define a theorem environment with custom layout. In particular, I want the body of the theorem to be indented, like this  Text body. Text body. Text body.  Theorem 1 (Pythagoras).     Let a,b,c the sides of a rectangular triangle.     Without loss of generality, we assume that  a&lt;b&lt;c .     Then, the following equality holds:            a^2 + b^2 = c^2  More text. And even more text.   This is similar to the quote environment, I believe.  How can I do this?  Preferably, I would like to use the existing \newtheorem command, but that's not mandatory. Biber 2.14 - Puzzling repeated error : "Invalid format '2020-01-01' of date field 'date' - ignoring" Balloons and lifting gases Hydrogen is the lightest element, so it's cable of lifting the most weight in out atmosphere (probably not the best terminology there, but you get the picture)  Would hot hydrogen (in the same sense as hot air) be able to lift even more mass? Would a higher or lower density of hydrogen in a ballon lift more? If you could have a balloon which had nothing in it (it was a vacuum inside) would that lift more than a hydrogen balloon?  Basically what are the physics to balloons and lifting?  (really not sure what to tag this, so if someone else could that'd be great) GRUB doesn't show Windows 10 Whenever I boot into my system, Linux directly boots. If I press shift, GRUB shows only Linux, not Windows. Here are results of fdisk and update-grub. I think I have installed Linux the wrong way.  $ fdisk WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.   Disk /dev/sda: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x00000000     Device Boot      Start         End      Blocks   Id  System /dev/sda1               1  1953525167   976762583+  ee  GPT Partition 1 does not start on physical sector boundary.  $ update-grub Generating grub configuration file ... Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported. Found linux image: /boot/vmlinuz-3.19.0-32-generic Found initrd image: /boot/initrd.img-3.19.0-32-generic Found memtest86+ image: /boot/memtest86+.elf Found memtest86+ image: /boot/memtest86+.bin   No volume groups found done Allow questions to be saved as drafts prior to posting pgfplots: Clipping Everything Outside a Specific Area I want to add information to each column of a histogram. every node near coord is probably the best approach. It works well with bar plots but not with the histogram:  \documentclass{article}  \usepackage{pgfplots} \pgfplotsset{compat=newest} \usetikzlibrary{pgfplots.statistics}  \begin{document}  \begin{tikzpicture} \begin{axis}[ ybar interval, xticklabel=\pgfmathprintnumber\tick--\pgfmathprintnumber\nexttick, % Code to generate labels nodes near coords={ \pgfmathprintnumber{\pgfkeysvalueof{/data point/y}} }, every node near coord/.style={ anchor=south,xshift=9mm, }, % ] \addplot+[hist={bins=3}] table[row sep=\\,y index=0] { data\\ 1\\ 2\\ 1\\ 5\\ 4\\ 10\\ 7\\ 10\\ 9\\ 8\\ 9\\ 9\\ }; \end{axis} \end{tikzpicture}  \end{document}   I used every node near coord/.style to shift the labels.  The problem is that I have four labels for three columns/bars:    I addition I would like to center the labels. A workaround will be a manual adjustment (every node near coord/.style) just like in the shown example.  Update  Maybe clipping is a possibility. Is there a way to clip the labels (in this case the 7 in the right) away?  Like this: Prove $\frac{1+a^{2}}{1+b+c^{2}} +\frac{1+b^{2}}{1+c+a^{2}} +\frac{1+c^{2}}{1+a+b^{2}} \geq 2$ For positive integers Numbers  $a, b, c $ prove that  $$\frac{1+a^{2}}{1+b+c^{2}} +\frac{1+b^{2}}{1+c+a^{2}} +\frac{1+c^{2}}{1+a+b^{2}} \geq  2$$ This inequality above take long time to prove it and still couldn't complete it.  How I can prove this inequality?  Any hint will help. Thanks Capillary action and conservation of energy When I dip a paper towel in a cup of water the water gets drawn up due to . How is this reconciled with conservation of energy, as it would seem on the surface that the potential energy of the system has gone up with no work being done? I have the following code: info = new System.Diagnostics.ProcessStartInfo(&quot;TheProgram.exe&quot;, String.Join(&quot; &quot;, args)); info.CreateNoWindow = true; info.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden; info.RedirectStandardOutput = true; info.UseShellExecute = false; System.Diagnostics.Process p = System.Diagnostics.Process.Start(info); p.WaitForExit(); Console.WriteLine(p.StandardOutput.ReadToEnd()); //need the StandardOutput contents  I know that the output from the process I am starting is around 7MB long. Running it in the Windows console works fine. Unfortunately programmatically this hangs indefinitely at WaitForExit. Note also this code does NOT hang for smaller outputs (like 3KB). Is it possible that the internal StandardOutput in ProcessStartInfo can't buffer 7MB? If so, what should I do instead? If not, what am I doing wrong? What lies beyond the Sedenions Exporting feature class into multiple feature classes based on field values using ArcGIS Desktop? Diffinitive rules for using Android's getBaseContext, getApplicationContext or using an Activity's "this" Example of $\deg(fg)<\deg(f)+\deg(g)$ Let $R$ be an integral domain and $f,g\in R[X_1,...,X_n]$ where $n&gt;1$. What is an example of a pair $f,g$ such that $\deg(fg)&lt;\deg(f)+\deg(g)$?   Moreover, I have proven that the units of $R[X_1,...,X_n]$ are just the units in $R$. (Proof is done inductively) Is it true?  EDIT    Even though the each term in the underlined summation is nonzero, isn't it possible that the summation is 0? Why is this impossible ? Multiple chrome.exe processes in Task Manager I know that each new tab on Google Chrome have its own process, but I have 14 chrome.exe processes running actually as I can see it on the Task Manager, and only two tabs are opened on Google Chrome.    Could it be due to Chrome extensions? What other reason can open more chrome.exe process and how to avoid it? How do I grep for all non-ASCII characters? so I've recently installed my first Ubuntu, to be precise, a daily build of 16.04, on my new laptop since the hardware was to new for 15.10. Now I'm in the process of setting it up and I want to install php5 and some extensions.  When I execute sudo apt-get install libapache2-mod-php5 I get the error message that there is no installation package available for php5 and libapache2.  The error message is in german, so I doubt that this would help, but anyways here it is. :-) E: For package »libapache2-mod-php5« existiert kein Installationskandidat.  Do I need to add a apt-get repository? Or what am I doing wrong? This is a phrase I've heard many people use, and it sounds wrong to me; e.g.:     The thing about that is, is that she might take it the wrong way.   It seems to treat "The thing [...] is"—the entire phrase—as the subject of the sentence. Of course, even if that were allowed, the comma placement would still be questionable.  I'm curious to know:   Is there a name for this wording? Is it specific to a certain dialect? Is its etymology known? I always see pictures of the solar system where our sun is in the middle and the planets surround the sun. All these planets move on orbits on the same layer. Why?