<?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 Use &#8216;at&#8217; Command to Schedule a Task on Given or Later Time in Linux	</title>
	<atom:link href="https://www.tecmint.com/linux-cron-alternative-at-command-to-schedule-tasks/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.tecmint.com/linux-cron-alternative-at-command-to-schedule-tasks/</link>
	<description>Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks.</description>
	<lastBuildDate>Thu, 13 Jul 2023 15:03:21 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: Santosh		</title>
		<link>https://www.tecmint.com/linux-cron-alternative-at-command-to-schedule-tasks/comment-page-1/#comment-1129045</link>

		<dc:creator><![CDATA[Santosh]]></dc:creator>
		<pubDate>Wed, 10 Apr 2019 18:20:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=22055#comment-1129045</guid>

					<description><![CDATA[How to add date along with time.]]></description>
			<content:encoded><![CDATA[<p>How to add date along with time.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ravi Saive		</title>
		<link>https://www.tecmint.com/linux-cron-alternative-at-command-to-schedule-tasks/comment-page-1/#comment-805517</link>

		<dc:creator><![CDATA[Ravi Saive]]></dc:creator>
		<pubDate>Mon, 08 Aug 2016 05:48:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=22055#comment-805517</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/linux-cron-alternative-at-command-to-schedule-tasks/comment-page-1/#comment-805255&quot;&gt;Jalal Hajigholamali&lt;/a&gt;.

@Jalal,

Thanks for finding it useful, and corrected in the writeup..]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/linux-cron-alternative-at-command-to-schedule-tasks/comment-page-1/#comment-805255">Jalal Hajigholamali</a>.</p>
<p>@Jalal,</p>
<p>Thanks for finding it useful, and corrected in the writeup..</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jalal Hajigholamali		</title>
		<link>https://www.tecmint.com/linux-cron-alternative-at-command-to-schedule-tasks/comment-page-1/#comment-805255</link>

		<dc:creator><![CDATA[Jalal Hajigholamali]]></dc:creator>
		<pubDate>Sun, 07 Aug 2016 05:59:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=22055#comment-805255</guid>

					<description><![CDATA[Hi,
Very useful article

remove extra &#039;d &#039; from atdd

# chkconfig --level 35 atdd on]]></description>
			<content:encoded><![CDATA[<p>Hi,<br />
Very useful article</p>
<p>remove extra &#8216;d &#8216; from atdd</p>
<p># chkconfig &#8211;level 35 atdd on</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Marcelo		</title>
		<link>https://www.tecmint.com/linux-cron-alternative-at-command-to-schedule-tasks/comment-page-1/#comment-804590</link>

		<dc:creator><![CDATA[Marcelo]]></dc:creator>
		<pubDate>Thu, 04 Aug 2016 18:55:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=22055#comment-804590</guid>

					<description><![CDATA[Very useful, thank you!]]></description>
			<content:encoded><![CDATA[<p>Very useful, thank you!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Sergey Podushkin		</title>
		<link>https://www.tecmint.com/linux-cron-alternative-at-command-to-schedule-tasks/comment-page-1/#comment-804378</link>

		<dc:creator><![CDATA[Sergey Podushkin]]></dc:creator>
		<pubDate>Thu, 04 Aug 2016 01:48:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=22055#comment-804378</guid>

					<description><![CDATA[Good article, Gabriel!

Just my 5 cents to it.

&quot;at&quot; can be used to start something on background, like nohup staff, but more short:
$ echo &quot;rsync remote_resource local_resource&quot; &#124; at now
or
$ at -f /path/to/my/script -m now
just notice &quot;-f script&quot; option - it&#039;s very convenient to run more complex staff

&quot;at&quot; can be used instead of cron to run something repeatedly after the first execution ends. This can eliminate cronjobs, scheduled to run each minute with various locks to avoid to run several commands simultaneously. One can add at the end of its script:
------ bash code snippet -----
# script payload here
this_script_name=$(basename $0)
this_script_path=$(readlink --canonicalize $(dirname $0))
at -f $this_script_path/$this_script_name now 
------ bash code snippet -----
this will start the script again when it&#039;s finished.

Another interesting application that&#039;s unable to implement with cron is periodically execution with random intervals. Mostly the same as abouve, but just add random delay:
------ bash code snippet -----
# script payload here
this_script_name=$(basename $0)
this_script_path=$(readlink --canonicalize $(dirname $0))
MIN_DELAY=15
RANDOM_BIAS=20
delay=$(( ($RANDOM % $RANDOM_BIAS) + $MIN_DELAY ))
at -f $this_script_path/$this_script_name now + $delay min
------ bash code snippet -----

That&#039;s all :)]]></description>
			<content:encoded><![CDATA[<p>Good article, Gabriel!</p>
<p>Just my 5 cents to it.</p>
<p>&#8220;at&#8221; can be used to start something on background, like nohup staff, but more short:<br />
$ echo &#8220;rsync remote_resource local_resource&#8221; | at now<br />
or<br />
$ at -f /path/to/my/script -m now<br />
just notice &#8220;-f script&#8221; option &#8211; it&#8217;s very convenient to run more complex staff</p>
<p>&#8220;at&#8221; can be used instead of cron to run something repeatedly after the first execution ends. This can eliminate cronjobs, scheduled to run each minute with various locks to avoid to run several commands simultaneously. One can add at the end of its script:<br />
&#8212;&#8212; bash code snippet &#8212;&#8211;<br />
# script payload here<br />
this_script_name=$(basename $0)<br />
this_script_path=$(readlink &#8211;canonicalize $(dirname $0))<br />
at -f $this_script_path/$this_script_name now<br />
&#8212;&#8212; bash code snippet &#8212;&#8211;<br />
this will start the script again when it&#8217;s finished.</p>
<p>Another interesting application that&#8217;s unable to implement with cron is periodically execution with random intervals. Mostly the same as abouve, but just add random delay:<br />
&#8212;&#8212; bash code snippet &#8212;&#8211;<br />
# script payload here<br />
this_script_name=$(basename $0)<br />
this_script_path=$(readlink &#8211;canonicalize $(dirname $0))<br />
MIN_DELAY=15<br />
RANDOM_BIAS=20<br />
delay=$(( ($RANDOM % $RANDOM_BIAS) + $MIN_DELAY ))<br />
at -f $this_script_path/$this_script_name now + $delay min<br />
&#8212;&#8212; bash code snippet &#8212;&#8211;</p>
<p>That&#8217;s all :)</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
