<?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 tar error checkng in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-error-checkng/m-p/3247601#M174807</link>
    <description>I want to use tar to backup the files ( tar -cvf ), could suggest how to have the error checking , eg . if the directory is not exist , the backup process is failure , then generate the error message to the log , could suggest what can I do ? thx</description>
    <pubDate>Wed, 14 Apr 2004 06:03:00 GMT</pubDate>
    <dc:creator>peterchu</dc:creator>
    <dc:date>2004-04-14T06:03:00Z</dc:date>
    <item>
      <title>tar error checkng</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-error-checkng/m-p/3247601#M174807</link>
      <description>I want to use tar to backup the files ( tar -cvf ), could suggest how to have the error checking , eg . if the directory is not exist , the backup process is failure , then generate the error message to the log , could suggest what can I do ? thx</description>
      <pubDate>Wed, 14 Apr 2004 06:03:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-error-checkng/m-p/3247601#M174807</guid>
      <dc:creator>peterchu</dc:creator>
      <dc:date>2004-04-14T06:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: tar error checkng</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-error-checkng/m-p/3247602#M174808</link>
      <description>tar cvf tarfile.tar *&lt;BR /&gt;rc=$?&lt;BR /&gt;&lt;BR /&gt;if [ $rc -ne 0 ] then&lt;BR /&gt;  echo "error bad tar."&lt;BR /&gt;else&lt;BR /&gt;  echo "good tar"&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;Add additional code as required.&lt;BR /&gt;&lt;BR /&gt;SEP&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Apr 2004 06:07:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-error-checkng/m-p/3247602#M174808</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-04-14T06:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: tar error checkng</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-error-checkng/m-p/3247603#M174809</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can redirect stout and sterr to a logfile&lt;BR /&gt;tar cvf .... &amp;gt; outputfile 2 &amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;then check the logfile for errors(grep) and generate some error in your script using "logger". In this way you errors can be in the syslog file or someother you can define in syslog.conf.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Peter&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Apr 2004 06:11:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-error-checkng/m-p/3247603#M174809</guid>
      <dc:creator>Hoefnix</dc:creator>
      <dc:date>2004-04-14T06:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: tar error checkng</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-error-checkng/m-p/3247604#M174810</link>
      <description>HI &lt;BR /&gt;&lt;BR /&gt;You can simply redirect the output of the tar command to a file by using the "&amp;gt;" symbol and specifying a file name where the output of the tar command will be written&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Apr 2004 10:00:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-error-checkng/m-p/3247604#M174810</guid>
      <dc:creator>Sarvesh A Dhuri</dc:creator>
      <dc:date>2004-04-14T10:00:15Z</dc:date>
    </item>
  </channel>
</rss>

