<?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: crontab output redirection in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-output-redirection/m-p/2422907#M333</link>
    <description>You also need to redirect the error out.  Using the example you gave only the standard out would go to the logfile and any error messages would go to your mail.&lt;BR /&gt;&lt;BR /&gt;Use the following syntax;&lt;BR /&gt;&lt;BR /&gt;0 2 * * * tar cv "files" &amp;gt; /tmp/logfile 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;This means also send error out (2) to standard out (1).&lt;BR /&gt;&lt;BR /&gt;John</description>
    <pubDate>Thu, 11 May 2000 06:16:48 GMT</pubDate>
    <dc:creator>John_Hancock</dc:creator>
    <dc:date>2000-05-11T06:16:48Z</dc:date>
    <item>
      <title>crontab output redirection</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-output-redirection/m-p/2422906#M332</link>
      <description>I have unsuccessfully tried to redirect output from a "tar" backup job in my crontab to a file using the following in my root crontab:&lt;BR /&gt;&lt;BR /&gt;0 2 * * * tar cv "files"  &amp;gt; /tmp/logfile&lt;BR /&gt;&lt;BR /&gt;Output always goes to the root mail account.&lt;BR /&gt;&lt;BR /&gt;I have also found that I cannot redirect any output from the "tar" command.&lt;BR /&gt;&lt;BR /&gt;HP-UX 10.20&lt;BR /&gt;&lt;BR /&gt;Please advise.</description>
      <pubDate>Thu, 11 May 2000 03:42:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-output-redirection/m-p/2422906#M332</guid>
      <dc:creator>Christine Roberts</dc:creator>
      <dc:date>2000-05-11T03:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: crontab output redirection</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-output-redirection/m-p/2422907#M333</link>
      <description>You also need to redirect the error out.  Using the example you gave only the standard out would go to the logfile and any error messages would go to your mail.&lt;BR /&gt;&lt;BR /&gt;Use the following syntax;&lt;BR /&gt;&lt;BR /&gt;0 2 * * * tar cv "files" &amp;gt; /tmp/logfile 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;This means also send error out (2) to standard out (1).&lt;BR /&gt;&lt;BR /&gt;John</description>
      <pubDate>Thu, 11 May 2000 06:16:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-output-redirection/m-p/2422907#M333</guid>
      <dc:creator>John_Hancock</dc:creator>
      <dc:date>2000-05-11T06:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: crontab output redirection</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-output-redirection/m-p/2422908#M334</link>
      <description>use the standard error redirect in your crontab.&lt;BR /&gt;i.e  crontab command 2&amp;gt; /tmp/out&lt;BR /&gt;or    crontab command 2&amp;gt;&amp;gt; /tmp/out if you want to append to the file.&lt;BR /&gt;</description>
      <pubDate>Thu, 11 May 2000 14:08:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-output-redirection/m-p/2422908#M334</guid>
      <dc:creator>Blessing K Sagonda</dc:creator>
      <dc:date>2000-05-11T14:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: crontab output redirection</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-output-redirection/m-p/2422909#M335</link>
      <description>Pardon the pun but 'tar'.&lt;BR /&gt;&lt;BR /&gt;I had tried using stderr redirection though&lt;BR /&gt;I had been placing it as follows&lt;BR /&gt;&lt;BR /&gt;tar cv &lt;FILES&gt; 2&amp;gt;&amp;amp;1 &amp;gt; /tmp/logfile&lt;BR /&gt;&lt;BR /&gt;ie: the cart before the horse.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/FILES&gt;</description>
      <pubDate>Sun, 14 May 2000 23:55:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-output-redirection/m-p/2422909#M335</guid>
      <dc:creator>Christine Roberts</dc:creator>
      <dc:date>2000-05-14T23:55:43Z</dc:date>
    </item>
  </channel>
</rss>

