<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: What is &#8216;&gt; /dev/null 2&gt;&#038;1&#8217; in Linux	</title>
	<atom:link href="https://www.ubuntumint.com/redirect-output-in-linux/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.ubuntumint.com/redirect-output-in-linux/</link>
	<description>UbuntuMint - Everything About Ubuntu Linux</description>
	<lastBuildDate>Fri, 25 Aug 2023 04:09:22 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>
	<item>
		<title>
		By: Rickard		</title>
		<link>https://www.ubuntumint.com/redirect-output-in-linux/#comment-8916</link>

		<dc:creator><![CDATA[Rickard]]></dc:creator>
		<pubDate>Sat, 02 Apr 2022 17:05:31 +0000</pubDate>
		<guid isPermaLink="false">https://www.ubuntumint.com/?p=452#comment-8916</guid>

					<description><![CDATA[Instead of using &lt;code&gt;&#062;/dev/null 2&#062;&#038;1&lt;/code&gt;.
 
Could you use :&lt;code&gt; wget -O /dev/null -o /dev/null example.com&lt;/code&gt;

What I can see on the other server fault forum it says. &quot;Here &lt;code&gt;-O&lt;/code&gt; sends the downloaded file to &lt;strong&gt;/dev/null&lt;/strong&gt; and &lt;code&gt;-o&lt;/code&gt; logs to &lt;strong&gt;/dev/null&lt;/strong&gt; instead of stderr. That way redirection is not needed at all.&quot;

and the other solution is: &lt;code&gt;wget -q --spider mysite.com&lt;/code&gt;

refer : https://serverfault.com/questions/619542/piping-wget-output-to-dev-null-in-cron/619546#619546]]></description>
			<content:encoded><![CDATA[<p>Instead of using <code>&gt;/dev/null 2&gt;&amp;1</code>.</p>
<p>Could you use :<code> wget -O /dev/null -o /dev/null example.com</code></p>
<p>What I can see on the other server fault forum it says. &#8220;Here <code>-O</code> sends the downloaded file to <strong>/dev/null</strong> and <code>-o</code> logs to <strong>/dev/null</strong> instead of stderr. That way redirection is not needed at all.&#8221;</p>
<p>and the other solution is: <code>wget -q --spider mysite.com</code></p>
<p>refer : <a href="https://serverfault.com/questions/619542/piping-wget-output-to-dev-null-in-cron/619546#619546" rel="nofollow ugc">https://serverfault.com/questions/619542/piping-wget-output-to-dev-null-in-cron/619546#619546</a></p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
