<?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: Using Shell Scripting to Automate Linux System Maintenance Tasks &#8211; Part 4	</title>
	<atom:link href="https://www.tecmint.com/using-shell-script-to-automate-linux-system-maintenance-tasks/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.tecmint.com/using-shell-script-to-automate-linux-system-maintenance-tasks/</link>
	<description>Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks.</description>
	<lastBuildDate>Fri, 21 Feb 2020 12:45:25 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: ankit		</title>
		<link>https://www.tecmint.com/using-shell-script-to-automate-linux-system-maintenance-tasks/comment-page-1/#comment-1317966</link>

		<dc:creator><![CDATA[ankit]]></dc:creator>
		<pubDate>Fri, 21 Feb 2020 12:45:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=15237#comment-1317966</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/using-shell-script-to-automate-linux-system-maintenance-tasks/comment-page-1/#comment-802033&quot;&gt;Việt Adm&lt;/a&gt;.

I am also using centos and facing the same error and I have tried this:
&lt;pre&gt;
df -h &#124; while read line; do
echo “” &#062;&#062; $WEB_DIR/report.html
done 
&lt;/pre&gt;
Also but got an error...]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/using-shell-script-to-automate-linux-system-maintenance-tasks/comment-page-1/#comment-802033">Việt Adm</a>.</p>
<p>I am also using centos and facing the same error and I have tried this:</p>
<pre>
df -h | while read line; do
echo “” &gt;&gt; $WEB_DIR/report.html
done 
</pre>
<p>Also but got an error&#8230;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Sunil Darna		</title>
		<link>https://www.tecmint.com/using-shell-script-to-automate-linux-system-maintenance-tasks/comment-page-1/#comment-1233858</link>

		<dc:creator><![CDATA[Sunil Darna]]></dc:creator>
		<pubDate>Thu, 29 Aug 2019 08:28:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=15237#comment-1233858</guid>

					<description><![CDATA[I&#039;m trying to execute below script to get Memory information for clients. But It throwing error with &quot; bash: Total: command not found.

&lt;strong&gt;bash: line 1: Used: command not found
bash: line 2: Free: command not found&lt;/strong&gt; 

I understood that shell is confused to execute &lt;strong&gt;&quot;invited quotes&quot;&lt;/strong&gt;. But I used &lt;code&gt;&quot; ` &quot;&lt;/code&gt; symbol also same output. Please help me to execute with desired output.
&lt;code&gt;
#!/bin/sh

echo &quot;MEMORY&quot;

cmds=&quot;free -t -m &#124; grep &#039;Mem&#039; &#124; awk &#039;{ print &quot;Total : &quot;$2 &quot; MB&quot;;print &quot;Used : &quot;$3&quot; MB&quot;;print &quot;Free : &quot;$4&quot; MB&quot;;}&#039; &quot;


for ip in `cat /home/server.txt`
do
    ssh -i &quot;/home/ec2-user/Office_Laptop_key.pem&quot; ec2-user@${ip} &quot;$cmds&quot;&#124;tr &#039;\n&#039; &#039;,&#039;&#124;sed &#039;s/,,/,NULL,/g&#039;
done
&lt;/code&gt;]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m trying to execute below script to get Memory information for clients. But It throwing error with &#8221; bash: Total: command not found.</p>
<p><strong>bash: line 1: Used: command not found<br />
bash: line 2: Free: command not found</strong> </p>
<p>I understood that shell is confused to execute <strong>&#8220;invited quotes&#8221;</strong>. But I used <code>" ` "</code> symbol also same output. Please help me to execute with desired output.<br />
<code><br />
#!/bin/sh</p>
<p>echo "MEMORY"</p>
<p>cmds="free -t -m | grep 'Mem' | awk '{ print "Total : "$2 " MB";print "Used : "$3" MB";print "Free : "$4" MB";}' "</p>
<p>for ip in `cat /home/server.txt`<br />
do<br />
    ssh -i "/home/ec2-user/Office_Laptop_key.pem" ec2-user@${ip} "$cmds"|tr '\n' ','|sed 's/,,/,NULL,/g'<br />
done<br />
</code></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Sajal		</title>
		<link>https://www.tecmint.com/using-shell-script-to-automate-linux-system-maintenance-tasks/comment-page-1/#comment-1157693</link>

		<dc:creator><![CDATA[Sajal]]></dc:creator>
		<pubDate>Sat, 25 May 2019 17:13:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=15237#comment-1157693</guid>

					<description><![CDATA[How can run this report to remote servers to gather the data and display for individual servers in one report.]]></description>
			<content:encoded><![CDATA[<p>How can run this report to remote servers to gather the data and display for individual servers in one report.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ravi Saive		</title>
		<link>https://www.tecmint.com/using-shell-script-to-automate-linux-system-maintenance-tasks/comment-page-1/#comment-1031526</link>

		<dc:creator><![CDATA[Ravi Saive]]></dc:creator>
		<pubDate>Mon, 03 Sep 2018 04:46:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=15237#comment-1031526</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/using-shell-script-to-automate-linux-system-maintenance-tasks/comment-page-1/#comment-1031215&quot;&gt;Bile&lt;/a&gt;.

@Bile,

Just do a little search on Tecmint.com, you will get all articles about LAMP, LEMP and network related stuff..]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/using-shell-script-to-automate-linux-system-maintenance-tasks/comment-page-1/#comment-1031215">Bile</a>.</p>
<p>@Bile,</p>
<p>Just do a little search on Tecmint.com, you will get all articles about LAMP, LEMP and network related stuff..</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Bile		</title>
		<link>https://www.tecmint.com/using-shell-script-to-automate-linux-system-maintenance-tasks/comment-page-1/#comment-1031215</link>

		<dc:creator><![CDATA[Bile]]></dc:creator>
		<pubDate>Sun, 02 Sep 2018 10:14:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=15237#comment-1031215</guid>

					<description><![CDATA[With the help of this script I can show system information, thanks.

Please post more related things like install lamp,  network profiles and lots of more....]]></description>
			<content:encoded><![CDATA[<p>With the help of this script I can show system information, thanks.</p>
<p>Please post more related things like install lamp,  network profiles and lots of more&#8230;.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
