<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Help with Crontab in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/help-with-crontab/m-p/4125821#M61474</link>
    <description>The appended ampersand to a statement&lt;BR /&gt;means that the flow of following commands&lt;BR /&gt;(n.b. shell scripts basically aren't much more than a batch of commands/program calls)&lt;BR /&gt;won't be blocked until the execution of the current command has finished or is interrupted.&lt;BR /&gt;It can be used as a kind of forking to achieve asynchronous execution behavior.&lt;BR /&gt;I guess this was the intention here&lt;BR /&gt;as the by minute cronjob interval might be too narrow for the called script to have finished before the next cronjob is due, since no other command immediately follows the call.&lt;BR /&gt;With interactive shells that support job control the ampersand is used to regain the shell prompt to continue work while a probably long-running command is being executed in the background.&lt;BR /&gt;</description>
    <pubDate>Tue, 08 Jan 2008 12:54:58 GMT</pubDate>
    <dc:creator>Ralph Grothe</dc:creator>
    <dc:date>2008-01-08T12:54:58Z</dc:date>
    <item>
      <title>Help with Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-with-crontab/m-p/4125816#M61469</link>
      <description>hi all i am using the follwing code in my crontab &lt;BR /&gt;* * * * * /root/a.sh &amp;amp;&amp;gt; /dev/null&lt;BR /&gt;Exactly wht is this &amp;amp;&amp;gt; used for......Pls explain</description>
      <pubDate>Tue, 08 Jan 2008 09:50:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-with-crontab/m-p/4125816#M61469</guid>
      <dc:creator>Karthik_sg</dc:creator>
      <dc:date>2008-01-08T09:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-with-crontab/m-p/4125817#M61470</link>
      <description>It running in background. and store the temporary result in /dev/null</description>
      <pubDate>Tue, 08 Jan 2008 10:03:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-with-crontab/m-p/4125817#M61470</guid>
      <dc:creator>Jeeshan</dc:creator>
      <dc:date>2008-01-08T10:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-with-crontab/m-p/4125818#M61471</link>
      <description>I rather assume this is a typo for what probably should read something like&lt;BR /&gt;&lt;BR /&gt;* * * * * /root/a.sh &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;Why would you want to run a cronjob in the background?&lt;BR /&gt;Besides, should this job really run every minute?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Jan 2008 10:12:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-with-crontab/m-p/4125818#M61471</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2008-01-08T10:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-with-crontab/m-p/4125819#M61472</link>
      <description>Forgot to mention,&lt;BR /&gt;Linux distros are using the extended Vixie crontab format.&lt;BR /&gt;There you can place environments in a crontab,&lt;BR /&gt;and especially setting MAILTO here to an empty string should suppress the sending of the cronjobs output as mail to the owner of the cronjob; something one usually tries to achieve by redirecting stdout and stderr to /dev/null&lt;BR /&gt;(with conventional implementations of cron)&lt;BR /&gt;So you could place this line in the top of your crontab:&lt;BR /&gt;&lt;BR /&gt;MAILTO=""&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Jan 2008 10:18:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-with-crontab/m-p/4125819#M61472</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2008-01-08T10:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-with-crontab/m-p/4125820#M61473</link>
      <description>we are monitoring our devices ,so it is to run every minute.but none of you explain the significance of &amp;amp;&amp;gt;  .I do know that it does not issue mails.But is it running the crontab in background or something...thnks for the replies...</description>
      <pubDate>Tue, 08 Jan 2008 11:01:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-with-crontab/m-p/4125820#M61473</guid>
      <dc:creator>Karthik_sg</dc:creator>
      <dc:date>2008-01-08T11:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-with-crontab/m-p/4125821#M61474</link>
      <description>The appended ampersand to a statement&lt;BR /&gt;means that the flow of following commands&lt;BR /&gt;(n.b. shell scripts basically aren't much more than a batch of commands/program calls)&lt;BR /&gt;won't be blocked until the execution of the current command has finished or is interrupted.&lt;BR /&gt;It can be used as a kind of forking to achieve asynchronous execution behavior.&lt;BR /&gt;I guess this was the intention here&lt;BR /&gt;as the by minute cronjob interval might be too narrow for the called script to have finished before the next cronjob is due, since no other command immediately follows the call.&lt;BR /&gt;With interactive shells that support job control the ampersand is used to regain the shell prompt to continue work while a probably long-running command is being executed in the background.&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Jan 2008 12:54:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-with-crontab/m-p/4125821#M61474</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2008-01-08T12:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-with-crontab/m-p/4125822#M61475</link>
      <description>&lt;!--!*#--&gt;I know I'm resurrecting a long dead thread, but I stumbled across this while searching for something related.  As none of the above answers are correct, I figured I'd answer for the benefit of future searchers.&lt;BR /&gt;&lt;BR /&gt;Ralph's comments are nearly correct, but it isn't a typo, and it isn't backgrounding the process, either.  &lt;BR /&gt;&lt;BR /&gt;Usually an "&amp;amp;" appended to the end of a command will cause that command to run in the background, but in this particular case, the "&amp;amp;&amp;gt; [file]" is a shorthand notation for the " &amp;gt;[file] 2&amp;gt;&amp;amp;1" notation (Ralph was close).  Not a typo.  It does NOT cause it to run in the background.  This shorthand is recognized by bash, and probably other shells, also.  &lt;BR /&gt;&lt;BR /&gt;What these two variations do is redirect both stdout and stderr to the file specified.  In this case, /dev/null, aka the bit bucket.&lt;BR /&gt;&lt;BR /&gt;For more information, see the man page for bash, or whatever shell you found this being used in.</description>
      <pubDate>Thu, 04 Jun 2009 00:02:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-with-crontab/m-p/4125822#M61475</guid>
      <dc:creator>Jason Sibre</dc:creator>
      <dc:date>2009-06-04T00:02:23Z</dc:date>
    </item>
  </channel>
</rss>

