<?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: script output in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-output/m-p/3551123#M702107</link>
    <description>You can add the following line at the start of myscript&lt;BR /&gt;&lt;BR /&gt;exec &amp;gt; output.file 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;this will redirect stdout and stderr to output.file.&lt;BR /&gt;&lt;BR /&gt;You can also use command called script&lt;BR /&gt;&lt;BR /&gt;$ script output.file&lt;BR /&gt;Script started, file is output.file&lt;BR /&gt;$ myscript&lt;BR /&gt;$ exit&lt;BR /&gt;Script done, file is output.file</description>
    <pubDate>Tue, 24 May 2005 23:19:41 GMT</pubDate>
    <dc:creator>Ermin Borovac</dc:creator>
    <dc:date>2005-05-24T23:19:41Z</dc:date>
    <item>
      <title>script output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-output/m-p/3551122#M702106</link>
      <description>Hi!&lt;BR /&gt;I have a script, that should make a file with it's output. How to do that?&lt;BR /&gt;Not using the following:&lt;BR /&gt;./myscript &amp;gt; output.file&lt;BR /&gt;&lt;BR /&gt;Is it possible to add some command that would prescribe to save output of script in some file?</description>
      <pubDate>Tue, 24 May 2005 22:35:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-output/m-p/3551122#M702106</guid>
      <dc:creator>Igor Sovin</dc:creator>
      <dc:date>2005-05-24T22:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: script output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-output/m-p/3551123#M702107</link>
      <description>You can add the following line at the start of myscript&lt;BR /&gt;&lt;BR /&gt;exec &amp;gt; output.file 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;this will redirect stdout and stderr to output.file.&lt;BR /&gt;&lt;BR /&gt;You can also use command called script&lt;BR /&gt;&lt;BR /&gt;$ script output.file&lt;BR /&gt;Script started, file is output.file&lt;BR /&gt;$ myscript&lt;BR /&gt;$ exit&lt;BR /&gt;Script done, file is output.file</description>
      <pubDate>Tue, 24 May 2005 23:19:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-output/m-p/3551123#M702107</guid>
      <dc:creator>Ermin Borovac</dc:creator>
      <dc:date>2005-05-24T23:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: script output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-output/m-p/3551124#M702108</link>
      <description>Hi Igor,&lt;BR /&gt;&lt;BR /&gt;You can use the following:&lt;BR /&gt;1. ./script.sh 1&amp;gt;output.log 2&amp;gt;&amp;amp;1 &lt;BR /&gt;2. nohup sh script.sh&lt;BR /&gt;3. nohup script.sh &amp;amp;&lt;BR /&gt;4. script output.log  #spool output to output.log&lt;BR /&gt; ./script.sh&lt;BR /&gt; exit  #end spool&lt;BR /&gt;&lt;BR /&gt;Does this help?&lt;BR /&gt;&lt;BR /&gt;Cheerio,&lt;BR /&gt;&lt;BR /&gt;Renarios</description>
      <pubDate>Wed, 25 May 2005 06:22:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-output/m-p/3551124#M702108</guid>
      <dc:creator>renarios</dc:creator>
      <dc:date>2005-05-25T06:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: script output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-output/m-p/3551125#M702109</link>
      <description>would you like to use tee command. &lt;BR /&gt;&lt;BR /&gt;./myscript | tee output.file&lt;BR /&gt;&lt;BR /&gt;This would server your purpose but at the same time would display output on stdout too.</description>
      <pubDate>Tue, 31 May 2005 08:14:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-output/m-p/3551125#M702109</guid>
      <dc:creator>Amit Agarwal_1</dc:creator>
      <dc:date>2005-05-31T08:14:16Z</dc:date>
    </item>
  </channel>
</rss>

