<?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 Shell programming in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-programming/m-p/2666370#M49671</link>
    <description>Hi everybody&lt;BR /&gt;I have written the script on hp-ux 10.20, which includes "tar cvf" command. This script is started by cron using the string which redirects stdout to "&amp;gt; /dev/pts/0"-everything to X-terminal of CDE. Everything is OK but tar command doesn't stdout anything.So how can I stdout the protocol of tar command to /dev/pts/0 ?&lt;BR /&gt;Thank you.</description>
    <pubDate>Mon, 18 Feb 2002 05:25:27 GMT</pubDate>
    <dc:creator>Kerry_1</dc:creator>
    <dc:date>2002-02-18T05:25:27Z</dc:date>
    <item>
      <title>Shell programming</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-programming/m-p/2666370#M49671</link>
      <description>Hi everybody&lt;BR /&gt;I have written the script on hp-ux 10.20, which includes "tar cvf" command. This script is started by cron using the string which redirects stdout to "&amp;gt; /dev/pts/0"-everything to X-terminal of CDE. Everything is OK but tar command doesn't stdout anything.So how can I stdout the protocol of tar command to /dev/pts/0 ?&lt;BR /&gt;Thank you.</description>
      <pubDate>Mon, 18 Feb 2002 05:25:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-programming/m-p/2666370#M49671</guid>
      <dc:creator>Kerry_1</dc:creator>
      <dc:date>2002-02-18T05:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Shell programming</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-programming/m-p/2666371#M49672</link>
      <description>Hi Kerry,&lt;BR /&gt;&lt;BR /&gt;/dev/pts/0 is assigned dynamically to the terminal which connects to the system. so when you try to redirect the output of the tar command to /dev/pts/0 there should be someone connected to the system using the port /dev/pts/0.&lt;BR /&gt;&lt;BR /&gt;Normally we redirect output of the commands to a file, that makes it easy to keep track of any errors.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;regds&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Feb 2002 05:30:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-programming/m-p/2666371#M49672</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2002-02-18T05:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Shell programming</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-programming/m-p/2666372#M49673</link>
      <description>Kerry, &lt;BR /&gt;Remember that tar spews it "output" onto stderr, not stdout.&lt;BR /&gt;You may want to try redirecting the standard error (2) instead of standard output (1)&lt;BR /&gt;&lt;BR /&gt;Hope this helps.</description>
      <pubDate>Mon, 18 Feb 2002 05:53:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-programming/m-p/2666372#M49673</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2002-02-18T05:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: Shell programming</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-programming/m-p/2666373#M49674</link>
      <description>Hi Kerry,&lt;BR /&gt;&lt;BR /&gt;The standard out of tar is channel 2 (normally standard error), so try the following:&lt;BR /&gt;&lt;BR /&gt;script_name &amp;gt;/dev/pts/0 2&amp;amp;&amp;gt;1&lt;BR /&gt;&lt;BR /&gt;using this way, you first redirect the output of all other commands to standard output, and the output of the tar- command is also redirected to the same terminal.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Allways stay on the bright side of life!&lt;BR /&gt;&lt;BR /&gt;Peter</description>
      <pubDate>Mon, 18 Feb 2002 08:20:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-programming/m-p/2666373#M49674</guid>
      <dc:creator>Peter Kloetgen</dc:creator>
      <dc:date>2002-02-18T08:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: Shell programming</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-programming/m-p/2666374#M49675</link>
      <description>Hi Peter,&lt;BR /&gt;&lt;BR /&gt;No offence but I think there is a small typo in your response. It should be:&lt;BR /&gt;&lt;BR /&gt;script_name &amp;gt;/dev/pts/0 2&amp;gt;&amp;amp;1 &lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Mon, 18 Feb 2002 08:26:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-programming/m-p/2666374#M49675</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-02-18T08:26:19Z</dc:date>
    </item>
  </channel>
</rss>

