Redirection after a process has started Say I have called firefox from the terminal with firefox, and I got back to the terminal.  I can now suspend the process with ctrl-z, and resume it in the background with bg.  However it will continue to produce output in the terminal.  Is there a way to redirect that at this point?  That is, to get the result of having written firefox &amp;&gt;/dev/null &amp; to begin with?
How to redirect output of a running program to /dev/null I know that in order to suppress the output of a program I can redirect it to /dev/null, for example to hide all error and warning messages from chromium I can start the program like this  chromium-browser 2&gt; /dev/null &amp;   However, if I happen to forget about the error messages and type  chromium-browser &amp;   (which is quite annoying when they appear in the middle of a command) I don't know what to do except for stopping the application and starting it again properly.  Can I somehow redirect error output without restarting the application?
What award did Leia give Chewie, Han and Luke? What award/medal is this -  I have been searching  to try and find what medal this is, but i have not found it, does anyone know what this medal/award was and why it would be given (eg- bravery, serving in the battle of Yavin)? I have some cites in my captions. But I do not want to appear them in the table of figures or listings. With figures I managed to display an different caption like this:  \begin{figure}   \centering   \includegraphics[width=0.55\linewidth]{images/FIPA_Message-Transport-Reference-Model}   \caption[FIPA Message Transport Reference Model]{FIPA Message Transport Reference Model (\cite{FIPA2000}).}   \label{fig:FIPA_Message-Transport-Reference-Model} \end{figure}    But with lstlisting I have some troubles because the caption is an option of the listings and that seems not to have an optional caption label.  \begin{lstlisting}[ language=Scala, label={lst:Publisher}, caption={Publisher notify\cite{Zenger2013}}]    protected def publish(event: Evt) {     filters.keys.foreach(sub =&gt;       if (!suspended.contains(sub) &amp;&amp; filters.entryExists(sub, p =&gt; p(event)))         sub.notify(self, event)     )   } \end{lstlisting}   Any Ideas how to solve this? Thanks in advance! Had it not been vs If it were not for I was granted a visa to Australia few months ago. I’d like to travel to Australia in few days. However, I’ve just renewed my passport and I don’t have enough time to inform them about my passport renewal. Can I travel to Australia by carrying both my old and my new passports? Divisor in $\mathbb{C}[X]$ $\implies$ divisor in $\mathbb{R}[X]$? let $P \in \mathbb{R}[X]$ be a real polynomial divisible by a polynomial $Q \in \mathbb{R}[X]$ in $\mathbb{C}[X]$. How can I easily show that $P$ is also divisible by $Q$ in $\mathbb{R}[X]$?  A simple argument without using higher algebraic theorems is desirable. If I could use instruments of higher algebra, the exercise I have to do in whole would be done in two lines. But I'm not allowed to use. I think there would be an easy argument which I can't see yet because of my mental fogginess that I have sometimes.  Thank you beforehand. New mobile chat doesn't follow the keyboard height The Japanese keyboard on iOS dynamically changes it's height to show suggestions and hides the input box of new mobile chat.        Additionally, third-party keyboards make the input box completely hidden. The chat seems to treat third-party keyboards as having no height.        iOS 9.2.1 / Mobile Safari  There is no problem in old (stable) design but it doesn't fix the input box to bottom! Write down the sum of sum of  sum of digits of $4444^{4444}$ Let $A = 4444^{4444}$;  Then sum of digits of $A = B$; Then sum of digits of $B = C$; Then sum of digits of $C = D$;  Find $D$.  What should be the approach here? R2jags does not remove the burn in part sometimes? Determine accuracy of model which estimates probability of event How do I check if an array includes a value in JavaScript? Schwarz's Lemma and functions with positive real part Problem:     Let $D = \{ z \in \mathbb C : |z| &lt; 1 \}$. Suppose $f : D \to \mathbb C$ is a non-constant analytic function such that $\mathrm{Re} f(z) \geq 0$ for all $z \in D$.      (a) Show that $\mathrm{Re} f(z) \neq 0$ for all $z \in D$.      (b) Using a Möbius transformation and Schwarz's lemma, prove that if   $f(0) = 1$, then $$ |f(z)| \leq {1+|z| \over 1-|z|}. $$   What can be said if $f(0) \neq 1$?      (c) Show that if $f(0) = 1$, then $f$ also satisfies $$ |f(z)| \geq {1-|z| \over 1+|z|}. $$   Progress:  (a) We can use the open mapping theorem.  (b) We can compose a Möbius transformation $m$ that sends the right-half plane to $D$ with $f$. Then $h = m \circ f$ satisfies the hypotheses of Schwarz's lemma by construction. Simple manipulations of the inequality from Schwarz's lemma give the result.  (c) Looking at part (a), we know that $\mathrm{Re} f(z) \neq 0$, and so $f(z) \neq 0$. Thus, we can use the function $g = 1/f$ in the statement of part (b).  Question:  What about when $f(0) \neq 1$? I don't think you can get anything from $f(z)-f(0)+1$ unless $\mathrm{Re} f(0) &lt; 1$. And you can't in general rearrange the inputs of $f$ because $1$ isn't necessarily in the image of $f$. Also, I don't think you can get anything from $f(z)/f(0)$ unless $f(0)$ is real, because otherwise the range of $f(z)/f(0)$ could extend into the left-half plane. Why can't Chromium suddenly access any partition except for /home? Tail sum for expectation In , the tail sum formula for expectation is introduced for a nonnegative (0,1,...) discrete random variable $X$:  $$E(X) = \sum_{i=0}^\infty P(X &gt; i).$$   I wonder if there is a similar formula for nonnegative continuous random variable $X$:  $$E(X) = \int_0^\infty P(X &gt; x) dx?$$  If no, are there some conditions for it to hold? And how can it be proved?  Here is my thought:  If the cdf $F$ of $X$ is bijective, then $X=F^{-1}(U)$ for some random variable $U$ uniformly distributed over $[0,1)$. So $$E(X) =     \int_0^1 F^{-1}(u) du.$$  To prove the tail sum formula, it suffices to prove $$\int_0^1     F^{-1}(u) du = \int_0^\infty P(X &gt; x) dx.$$ But I am stuck here.   What's more, is the condition that the cdf $F$ of $X$ is bijective really necessary for tail sum formula to hold? Can tail sum formula be generalized to a random variable that is not necessarily nonnegative?   Thanks! arbitrary large finite sums of an uncountable set. How to make a Snap application (ksnip) appear in "open with other application" context menu? For editing screengrabs, I prefer to use , since  was no longer installable without hassles on Ubuntu 18.04 and 20.04 However ksnip is available as a Snap App on my 20.04 ○ → snap list | grep ksnip ksnip                    1.8.0                       265    latest/stable    dporobic                 Unfortunately I have to start ksnip from the command line, then use the File-Open Dialog to pick a screengrab/PNG, then edit it in ksnip. This is should be easier. What I want is to use Nautilus File manager, then select the &quot;Open with other Application&quot; context menu item to select ksnip, and the have ksnip open the file I picked with nautilus. Nautilus Context Menu, selecting a PNG:  &quot;Select Application&quot; Dialog:  How can I achieve this? There is a &quot;View all Applications&quot; Button, but after clicking, ksnip does NOT appear in this list of apps. &quot;Find new applications&quot; does not work either. Maybe this is a duplicate, but I think we did not have the combination yet (Hack the dialog and Snap App)  (Note to self: maybe Shutter is usable again. Development had stalled for a while, or it needed a lot of deprecated versions of gnome libs as dependencies) . Rm can't delete file Complete classification of the groups for which converse of Lagrange's Theorem holds How can I find just the *.mp3 files with a recursive command like ls -R *.mp3 in a directory that contains several sub-directories and at the end copy these files in a directory that I choose.  Thanks for your support. How do you make clothes move along with model how do you make clothes move along with your model? Do you rig the model first and then parent it to the body of the character then click cloth simulation? I am a little bit confused with the process. Thanks for the help. I was really happy when I heard that HoTD would be continued. And even happier when the first new chapter actually came. but now after several months of waiting there still has been no other chapter. So my question is, has HoTD gone on hiatus again ?