<?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: Log what a script does in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/log-what-a-script-does/m-p/5201268#M463489</link>
    <description>Peete - you are right using the -v command.  Problem is I can't read that fast.&lt;BR /&gt;&lt;BR /&gt;James - exactly what I was looking for.&lt;BR /&gt;&lt;BR /&gt;Regards and thanks to both.</description>
    <pubDate>Tue, 29 Sep 2009 15:43:49 GMT</pubDate>
    <dc:creator>Charles Holland</dc:creator>
    <dc:date>2009-09-29T15:43:49Z</dc:date>
    <item>
      <title>Log what a script does</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/log-what-a-script-does/m-p/5201265#M463486</link>
      <description>&lt;!--!*#--&gt;Trying to write a small script to back up ALL of anything that has to do with DP5.5 before upgrading.  I am using tar to back everything up and I'd like for the process to create a log for my review to know that there were no problems.&lt;BR /&gt;&lt;BR /&gt;#!/sbin/sh&lt;BR /&gt;#  Purpose  &lt;BR /&gt;#        Back up any and everything associated with DataProtector&lt;BR /&gt;#        in preperation of upgading from 5.5 to 6.1&lt;BR /&gt;/sbin/tar -cvf /dev/rmt/0mn        \&lt;BR /&gt;/sbin/init.d/omni                  \&lt;BR /&gt;/sbin/rc1.d/K162omni               \&lt;BR /&gt;/sbin/rc2.d/S838omni               \&lt;BR /&gt;/etc/opt/omni                      \&lt;BR /&gt;/opt/omni                          \&lt;BR /&gt;/opt/omni/newconfig/etc/opt/omni   \&lt;BR /&gt;/opt/omni/newconfig/var/opt/omni   \&lt;BR /&gt;/opt/omni/newconfig/opt/omni       \&lt;BR /&gt;/var/opt/omni                       \&lt;BR /&gt; &amp;amp;1&amp;gt; /tmp/omni_bu_list&lt;BR /&gt;/usr/bin/mt -f /dev/rmt/0mn offl&lt;BR /&gt;&lt;BR /&gt;Everything was working and then I inserted the next to last line in order to try and get a log.  Messed around with trying to use the function "tee" but that didn't work.  Looking for suggestions here&lt;BR /&gt;&lt;BR /&gt;Ususally reward points quickly.&lt;BR /&gt;Thanks in advance.</description>
      <pubDate>Tue, 29 Sep 2009 14:46:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/log-what-a-script-does/m-p/5201265#M463486</guid>
      <dc:creator>Charles Holland</dc:creator>
      <dc:date>2009-09-29T14:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Log what a script does</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/log-what-a-script-does/m-p/5201266#M463487</link>
      <description>Crude, perhaps, but you could just use the script command before invoking your script.  The -v option to your tar command should ensure that every backup object is logged on the screen and the script command will capture that output.  That would eliminate the need for your next to last line entirely.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Tue, 29 Sep 2009 14:51:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/log-what-a-script-does/m-p/5201266#M463487</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2009-09-29T14:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: Log what a script does</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/log-what-a-script-does/m-p/5201267#M463488</link>
      <description>Hi Charles:&lt;BR /&gt;&lt;BR /&gt;The verbose output of 'tar' goes to STDERR, so you need :&lt;BR /&gt;&lt;BR /&gt;# tar -cvf /dev/rmt/0mn f1 f2 2&amp;gt;&amp;amp;1 |tee -a /tmp/omni_bu_list&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 29 Sep 2009 14:51:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/log-what-a-script-does/m-p/5201267#M463488</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-09-29T14:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Log what a script does</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/log-what-a-script-does/m-p/5201268#M463489</link>
      <description>Peete - you are right using the -v command.  Problem is I can't read that fast.&lt;BR /&gt;&lt;BR /&gt;James - exactly what I was looking for.&lt;BR /&gt;&lt;BR /&gt;Regards and thanks to both.</description>
      <pubDate>Tue, 29 Sep 2009 15:43:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/log-what-a-script-does/m-p/5201268#M463489</guid>
      <dc:creator>Charles Holland</dc:creator>
      <dc:date>2009-09-29T15:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: Log what a script does</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/log-what-a-script-does/m-p/5201269#M463490</link>
      <description>You don't need to read that fast - the script command puts the output into a file called "typescript" by default, though you can supply a name of your choice.  As always, check the "script" man page for details.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Tue, 29 Sep 2009 16:14:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/log-what-a-script-does/m-p/5201269#M463490</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2009-09-29T16:14:44Z</dc:date>
    </item>
  </channel>
</rss>

