<?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: Using tar command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/using-tar-command/m-p/2733948#M66068</link>
    <description>Hi Jennifer:&lt;BR /&gt;&lt;BR /&gt;First, you will need to have patch PHKL_16751 installed. &lt;BR /&gt;&lt;BR /&gt;Then will need to add a line to 'stand/system' in the tunable parameters list that reads:&lt;BR /&gt;&lt;BR /&gt;large_ncargs_enabled 1&lt;BR /&gt;&lt;BR /&gt;Next, you can use SAM and regenerate your kernel.  Upon reboot, you should have the larger environement space.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 31 May 2002 20:08:57 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2002-05-31T20:08:57Z</dc:date>
    <item>
      <title>Using tar command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-tar-command/m-p/2733940#M66060</link>
      <description>Hi all,&lt;BR /&gt;I have a question regarding about create a tar file using a tar command. I am using HP-UX 10.20. When I execute the tar command by manual,it is worked:&lt;BR /&gt;    tar cvf BK.tar cantata marcato rhapsody &lt;BR /&gt;but when I put in the script, it does not work and send the error message is: &lt;BR /&gt;  ./ASIBk[29]: /usr/bin/tar: arg list too long&lt;BR /&gt; -ASIBk is the script name&lt;BR /&gt; -29 is the line number&lt;BR /&gt; -cantata, marcato, and rhapsody are the  directories that I would like to tar.&lt;BR /&gt;Would you help me with this problem. Thank you.&lt;BR /&gt;Regards,&lt;BR /&gt;Jennifer Lam.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 29 May 2002 21:21:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-tar-command/m-p/2733940#M66060</guid>
      <dc:creator>Jennifer Lam</dc:creator>
      <dc:date>2002-05-29T21:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using tar command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-tar-command/m-p/2733941#M66061</link>
      <description>Your syntax looks perfect. I can only guess that perhaps there is a '*' past your 3 directories OR the command is continued onto the following line OR something like a missing quote. I think your actual problem is somewhere else in the script. A good test would be to put a '#' at the beginning of the line that contains the tar and see if the script executes as expected. This error is telling you that tar is seeing a very long argument list.&lt;BR /&gt;</description>
      <pubDate>Wed, 29 May 2002 21:39:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-tar-command/m-p/2733941#M66061</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-05-29T21:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using tar command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-tar-command/m-p/2733942#M66062</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Can you show us your script?&lt;BR /&gt;&lt;BR /&gt;You could get the "argument list too long" error if you had used wildcards in your script i.e.:&lt;BR /&gt;&lt;BR /&gt;tar cvf BK.tar cantata/* marcato/* rhapsody/*&lt;BR /&gt;&lt;BR /&gt;This is because the wildcars are expanded by the shell interpreter before passing on to the tar command. &lt;BR /&gt;&lt;BR /&gt;To fix that, use the same syntax you did on the command line, that is:&lt;BR /&gt;&lt;BR /&gt;tar cvf BK.tar cantata marcato rhapsody &lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Thu, 30 May 2002 00:09:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-tar-command/m-p/2733942#M66062</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-05-30T00:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using tar command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-tar-command/m-p/2733943#M66063</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;There are couple of things you could do. You could try and include './' in front of the directories names in your script. The real answer is to change the 'large_ncargs_enabled' parameter in your kernel to the value of '1'&lt;BR /&gt;The default is 20478 bytes, (value 0) but you can increase this value to 2048000 by changing the kernel parameter. &lt;BR /&gt;You can use the command 'getconf ARG_MAX' &lt;BR /&gt;&lt;BR /&gt;$ getconf ARG_MAX &lt;BR /&gt;20478 &lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;~Michael~</description>
      <pubDate>Thu, 30 May 2002 00:26:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-tar-command/m-p/2733943#M66063</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2002-05-30T00:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using tar command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-tar-command/m-p/2733944#M66064</link>
      <description>Jennifer&lt;BR /&gt;&lt;BR /&gt;the problem is * is intrepeted as say x no . of lines , now trar can have only a fix argument which by default is 20478 , even any other operation using this * like rm -i will not be possible as it will again complin about it , solution is to either increse the arg count or may be try to split the list like &lt;BR /&gt;&lt;BR /&gt;tar cvf abc,tar &amp;lt; directory 1 &amp;gt;&lt;BR /&gt;tar uvf abc.tar &lt;DIRECOTORY 2=""&gt;&lt;BR /&gt;tar uvf abc.tar &lt;DIRECTORY 3=""&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Manoj Srivastava&lt;/DIRECTORY&gt;&lt;/DIRECOTORY&gt;</description>
      <pubDate>Thu, 30 May 2002 03:20:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-tar-command/m-p/2733944#M66064</guid>
      <dc:creator>MANOJ SRIVASTAVA</dc:creator>
      <dc:date>2002-05-30T03:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using tar command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-tar-command/m-p/2733945#M66065</link>
      <description>hi&lt;BR /&gt;&lt;BR /&gt;tar uvf abc.tar &lt;DIRECOTORY 1=""&gt; &lt;BR /&gt;tar uvf abc.tar &lt;DIRECTORY 2=""&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-niraj&lt;/DIRECTORY&gt;&lt;/DIRECOTORY&gt;</description>
      <pubDate>Thu, 30 May 2002 06:48:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-tar-command/m-p/2733945#M66065</guid>
      <dc:creator>Niraj Kumar Verma</dc:creator>
      <dc:date>2002-05-30T06:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using tar command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-tar-command/m-p/2733946#M66066</link>
      <description>Hi Michael,&lt;BR /&gt;I am running HP-UX 10.20. &lt;BR /&gt;I would like to know how or what file do you get in to change the 'large_ncargs_enable' parameter in kernel to 1?&lt;BR /&gt;I did try the following:&lt;BR /&gt;   - I type in the command&lt;BR /&gt;        $ getconf ARG_MAX (I get 20478)&lt;BR /&gt;          20478&lt;BR /&gt;   - I did try to get in SAM to configuration, but I don't see the parameter  &lt;BR /&gt;'large_ncargs_enable'&lt;BR /&gt;Would you help me. Thank you.&lt;BR /&gt;Regards,&lt;BR /&gt;Jennifer Lam.</description>
      <pubDate>Fri, 31 May 2002 19:32:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-tar-command/m-p/2733946#M66066</guid>
      <dc:creator>Jennifer Lam</dc:creator>
      <dc:date>2002-05-31T19:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using tar command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-tar-command/m-p/2733947#M66067</link>
      <description>Hi Jennifer,&lt;BR /&gt;&lt;BR /&gt;To be able to see this parameter you need to first install patch PHKL_16410. See the details below. Once you have installed the patch you should be able to see the parameter within SAM.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;Michael&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Here is the details from the Technical Knowledge Base document:&lt;BR /&gt;&lt;BR /&gt;PROBLEM &lt;BR /&gt;I am getting errors like: &lt;BR /&gt;&lt;BR /&gt;Arg list too long &lt;BR /&gt;&lt;BR /&gt;when I issue certain commands, such as 'find'. What is causing the &lt;BR /&gt;error and how can I make it go away? &lt;BR /&gt;&lt;BR /&gt;CONFIGURATION &lt;BR /&gt;Operating System - HP-UX &lt;BR /&gt;Version - 10.20 &lt;BR /&gt;&lt;BR /&gt;RESOLUTION &lt;BR /&gt;The 'arg list too long' error occurs when you exceed the maximum &lt;BR /&gt;length of arguments that can be passed to a command. &lt;BR /&gt;&lt;BR /&gt;The default is 20478 bytes, but you can increase this value to 2048000 &lt;BR /&gt;by setting the kernel parameter 'large_ncargs_enabled = 1' (default is 0). &lt;BR /&gt;&lt;BR /&gt;You can execute 'getconf ARG_MAX' to find out if 'large_ncargs_enabled' &lt;BR /&gt;is set to 1 or 0. For example: &lt;BR /&gt;&lt;BR /&gt;$ getconf ARG_MAX &lt;BR /&gt;20478 &lt;BR /&gt;&lt;BR /&gt;If you receive 20478 when you execute the command, recompile the kernel &lt;BR /&gt;with 'large_ncargs_enabled = 1' to resolve the error. &lt;BR /&gt;&lt;BR /&gt;Note that for HP-UX 11.0 systems, the limit is set to the larger value &lt;BR /&gt;by default, and the large_ncargs_enabled kernel tunable is not needed. &lt;BR /&gt;&lt;BR /&gt;Note that patch: &lt;BR /&gt;&lt;BR /&gt;PHKL_16410 &lt;BR /&gt;s800 10.20 LVM/UFS/NDDB/flkmgr/VxFS,DMAPI/PCI/SCSI/MO/dump &lt;BR /&gt;&lt;BR /&gt;enables this kernel parameter, so you may need to install it if you &lt;BR /&gt;do not already have it or a superseding patch installed already. &lt;BR /&gt;&lt;BR /&gt;Note: This patch, as with any patch, may be superseded. Please &lt;BR /&gt;check for the latest patch at the Electronic Support Center &lt;BR /&gt;(ESC) by using either of these web sites: &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://us-support.external.hp.com" target="_blank"&gt;http://us-support.external.hp.com&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://europe-support.external.hp.com" target="_blank"&gt;http://europe-support.external.hp.com&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 31 May 2002 19:56:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-tar-command/m-p/2733947#M66067</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2002-05-31T19:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using tar command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-tar-command/m-p/2733948#M66068</link>
      <description>Hi Jennifer:&lt;BR /&gt;&lt;BR /&gt;First, you will need to have patch PHKL_16751 installed. &lt;BR /&gt;&lt;BR /&gt;Then will need to add a line to 'stand/system' in the tunable parameters list that reads:&lt;BR /&gt;&lt;BR /&gt;large_ncargs_enabled 1&lt;BR /&gt;&lt;BR /&gt;Next, you can use SAM and regenerate your kernel.  Upon reboot, you should have the larger environement space.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 31 May 2002 20:08:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-tar-command/m-p/2733948#M66068</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-05-31T20:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Using tar command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-tar-command/m-p/2733949#M66069</link>
      <description>Hi Jennifer:&lt;BR /&gt;&lt;BR /&gt;Do *not* use PHKL_16410 as you will see from the Patch Database.  You will note the critcal alert, "Patch PHKL_15959 introduced a problem...while the problem was introduced in PHKL_15959, it is also present in superseding patches PHKL_16388, PHKL_16410...".&lt;BR /&gt;&lt;BR /&gt;Use the successor patch PHKL_16751.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 31 May 2002 20:15:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-tar-command/m-p/2733949#M66069</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-05-31T20:15:54Z</dc:date>
    </item>
  </channel>
</rss>

