<?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: How to Run or Repeat a Linux Command Every X Seconds Forever	</title>
	<atom:link href="https://www.tecmint.com/run-repeat-linux-command-every-x-seconds/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.tecmint.com/run-repeat-linux-command-every-x-seconds/</link>
	<description>Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks.</description>
	<lastBuildDate>Thu, 13 Jul 2023 22:17:54 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: Laura Morris		</title>
		<link>https://www.tecmint.com/run-repeat-linux-command-every-x-seconds/comment-page-1/#comment-1550410</link>

		<dc:creator><![CDATA[Laura Morris]]></dc:creator>
		<pubDate>Sun, 18 Jul 2021 15:58:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=18955#comment-1550410</guid>

					<description><![CDATA[Is there any chance you can help me with this? It is really blowing my mind.

I would like you to create a shell script that runs on an interval of your choosing (10 seconds, 15 seconds, 30 seconds, etc.).

The shell script should:

Log all processes that are running. 
If a duplicate program(s) is executed, the shell script will automatically “kill” the process associated with the second instance of that particular program.

The script should:

Redirect the contents of your cron table to a file (Please allow the script to run long enough to capture the data. 
You will also have to ensure some program is executed twice so the script will actually kill the process). 

This is in centos]]></description>
			<content:encoded><![CDATA[<p>Is there any chance you can help me with this? It is really blowing my mind.</p>
<p>I would like you to create a shell script that runs on an interval of your choosing (10 seconds, 15 seconds, 30 seconds, etc.).</p>
<p>The shell script should:</p>
<p>Log all processes that are running.<br />
If a duplicate program(s) is executed, the shell script will automatically “kill” the process associated with the second instance of that particular program.</p>
<p>The script should:</p>
<p>Redirect the contents of your cron table to a file (Please allow the script to run long enough to capture the data.<br />
You will also have to ensure some program is executed twice so the script will actually kill the process). </p>
<p>This is in centos</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: v0idkr4ft		</title>
		<link>https://www.tecmint.com/run-repeat-linux-command-every-x-seconds/comment-page-1/#comment-1328976</link>

		<dc:creator><![CDATA[v0idkr4ft]]></dc:creator>
		<pubDate>Wed, 22 Apr 2020 00:12:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=18955#comment-1328976</guid>

					<description><![CDATA[Thanks, used this plus &lt;code&gt;&quot;$(ls &#124; shuf -n1)&quot;&lt;/code&gt; to creating random animated gifs from a folder into a little animated pixel art slideshow in my terminal.]]></description>
			<content:encoded><![CDATA[<p>Thanks, used this plus <code>"$(ls | shuf -n1)"</code> to creating random animated gifs from a folder into a little animated pixel art slideshow in my terminal.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Sachin Tiwari		</title>
		<link>https://www.tecmint.com/run-repeat-linux-command-every-x-seconds/comment-page-1/#comment-1302489</link>

		<dc:creator><![CDATA[Sachin Tiwari]]></dc:creator>
		<pubDate>Fri, 06 Dec 2019 07:05:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=18955#comment-1302489</guid>

					<description><![CDATA[Any idea of how to use the &lt;strong&gt;watch&lt;/strong&gt; and &lt;strong&gt;sleep&lt;/strong&gt; commands together?

Like &lt;code&gt;watch -n 5 &quot;cmd1; sleep 3; cmd2&quot; &lt;/code&gt;

e.g. &lt;code&gt;watch -n 5 &quot;date; sleep 3; date&quot;&lt;/code&gt;

This doesn&#039;t work as expected. :(

The WAR that I have used is to move command to a script file and use it like &lt;code&gt;watch -n 5 test.sh&lt;/code&gt;.]]></description>
			<content:encoded><![CDATA[<p>Any idea of how to use the <strong>watch</strong> and <strong>sleep</strong> commands together?</p>
<p>Like <code>watch -n 5 "cmd1; sleep 3; cmd2" </code></p>
<p>e.g. <code>watch -n 5 "date; sleep 3; date"</code></p>
<p>This doesn&#8217;t work as expected. :(</p>
<p>The WAR that I have used is to move command to a script file and use it like <code>watch -n 5 test.sh</code>.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jim		</title>
		<link>https://www.tecmint.com/run-repeat-linux-command-every-x-seconds/comment-page-1/#comment-1281053</link>

		<dc:creator><![CDATA[Jim]]></dc:creator>
		<pubDate>Fri, 01 Nov 2019 21:35:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=18955#comment-1281053</guid>

					<description><![CDATA[Sounds like you could easily make yourself a fork bomb with a small mistake.]]></description>
			<content:encoded><![CDATA[<p>Sounds like you could easily make yourself a fork bomb with a small mistake.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: coringa		</title>
		<link>https://www.tecmint.com/run-repeat-linux-command-every-x-seconds/comment-page-1/#comment-937488</link>

		<dc:creator><![CDATA[coringa]]></dc:creator>
		<pubDate>Sat, 18 Nov 2017 23:24:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=18955#comment-937488</guid>

					<description><![CDATA[Oh my god, thanks a lot, i was trying to use cron, but 1 minute is too long, you saved me, a simple command that do the job, thanks a lot man]]></description>
			<content:encoded><![CDATA[<p>Oh my god, thanks a lot, i was trying to use cron, but 1 minute is too long, you saved me, a simple command that do the job, thanks a lot man</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
