<?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 ls command is interrupted in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ls-command-is-interrupted/m-p/2671128#M50952</link>
    <description>When I do "ls -la" from a remote HP workstation of a directory that have a lot of files, the command result is interrupted. Anyone knows if there are a configurable variable or parameter with the maximum number of files that can display the ls command?</description>
    <pubDate>Mon, 25 Feb 2002 16:47:20 GMT</pubDate>
    <dc:creator>Consuelo Sierra</dc:creator>
    <dc:date>2002-02-25T16:47:20Z</dc:date>
    <item>
      <title>ls command is interrupted</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ls-command-is-interrupted/m-p/2671128#M50952</link>
      <description>When I do "ls -la" from a remote HP workstation of a directory that have a lot of files, the command result is interrupted. Anyone knows if there are a configurable variable or parameter with the maximum number of files that can display the ls command?</description>
      <pubDate>Mon, 25 Feb 2002 16:47:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ls-command-is-interrupted/m-p/2671128#M50952</guid>
      <dc:creator>Consuelo Sierra</dc:creator>
      <dc:date>2002-02-25T16:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: ls command is interrupted</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ls-command-is-interrupted/m-p/2671129#M50953</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;yes, you are right, the command line parameters of each command are limited to a specific number of characters. I think this is about 5500 characters alltogether for the command line. Simple solution:&lt;BR /&gt;&lt;BR /&gt;create a script and do the listing with a for-construct:&lt;BR /&gt;&lt;BR /&gt;for i in `ls -al $1`&lt;BR /&gt;do&lt;BR /&gt;    ls -al $i&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;usage : &lt;BR /&gt;# script_name name_of_directory_to_list&lt;BR /&gt;&lt;BR /&gt;Of course you can pipe this to a more-commmand.&lt;BR /&gt;&lt;BR /&gt;Allways stay on the bright side of life!&lt;BR /&gt;&lt;BR /&gt;Peter</description>
      <pubDate>Mon, 25 Feb 2002 16:52:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ls-command-is-interrupted/m-p/2671129#M50953</guid>
      <dc:creator>Peter Kloetgen</dc:creator>
      <dc:date>2002-02-25T16:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: ls command is interrupted</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ls-command-is-interrupted/m-p/2671130#M50954</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;I don't think there is an inherant limit to the number of files that ls can display BUT there is a limit to the size of the environment space/command line space that the exec() system call can use. &lt;BR /&gt;&lt;BR /&gt;If you cd to the desired directory, then do your ls -la without any files specified, you should be fine.&lt;BR /&gt;</description>
      <pubDate>Mon, 25 Feb 2002 16:59:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ls-command-is-interrupted/m-p/2671130#M50954</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-02-25T16:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: ls command is interrupted</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ls-command-is-interrupted/m-p/2671131#M50955</link>
      <description>Hi Consuelo,&lt;BR /&gt;&lt;BR /&gt;of course Clay is right... If you need these listings very open, the following script solves the problem also very easy&lt;BR /&gt;&lt;BR /&gt;cd $1&lt;BR /&gt;ls -al&lt;BR /&gt;cd -&lt;BR /&gt;&lt;BR /&gt;usage:&lt;BR /&gt;&lt;BR /&gt;# script_name absolute_path_to_directory&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, 25 Feb 2002 17:04:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ls-command-is-interrupted/m-p/2671131#M50955</guid>
      <dc:creator>Peter Kloetgen</dc:creator>
      <dc:date>2002-02-25T17:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: ls command is interrupted</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ls-command-is-interrupted/m-p/2671132#M50956</link>
      <description>If you get the following message-&lt;BR /&gt;&lt;BR /&gt;sh: /usr/bin/ls: The parameter list is too long&lt;BR /&gt;&lt;BR /&gt;Then the above solutions should work for you. If you are having a problem because you say you are listing a "remote" workstation, and are using "remsh" to execute the "ls" command, then it could be a different issue (like a networking issue).&lt;BR /&gt;&lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Mon, 25 Feb 2002 17:10:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ls-command-is-interrupted/m-p/2671132#M50956</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2002-02-25T17:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: ls command is interrupted</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ls-command-is-interrupted/m-p/2671133#M50957</link>
      <description>Or it could be a dodgy file name on the remote host which contains the end-of-file character - this might cause remsh to close its socket before the rest of the data is pushed thro.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Mon, 25 Feb 2002 18:29:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ls-command-is-interrupted/m-p/2671133#M50957</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2002-02-25T18:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: ls command is interrupted</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ls-command-is-interrupted/m-p/2671134#M50958</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I would not expect ls -la to have a problem with too much data because it uses no wild cards. You possibly have a network timeout if the link is slow.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Try &lt;BR /&gt;remsh node "cd dir;ls -la"|while read line&lt;BR /&gt;                            do&lt;BR /&gt;                             echo "$line"&lt;BR /&gt;                            done&lt;BR /&gt;Or&lt;BR /&gt;remsh node "cd $dir;ls -la &amp;gt; /tmp/$PPID;cat /tmp/$PPID;/bin/rm /tmp/$PPID"&lt;BR /&gt;&lt;BR /&gt;See if they give breaks&lt;BR /&gt;&lt;BR /&gt;             Steve Steel</description>
      <pubDate>Wed, 27 Feb 2002 15:40:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ls-command-is-interrupted/m-p/2671134#M50958</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2002-02-27T15:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: ls command is interrupted</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ls-command-is-interrupted/m-p/2671135#M50959</link>
      <description>Does the following work?&lt;BR /&gt;&lt;BR /&gt;remsh node "ls -la | cat -v"&lt;BR /&gt;&lt;BR /&gt;If it does, it is definately bad characters in file names.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Wed, 27 Feb 2002 15:46:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ls-command-is-interrupted/m-p/2671135#M50959</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2002-02-27T15:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: ls command is interrupted</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ls-command-is-interrupted/m-p/2671136#M50960</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have the same problem when there is too much files in a directory. But I don't really know the standard limit. For this, I don't list the entire directory but just some part of this.&lt;BR /&gt;    ls -al A*&lt;BR /&gt;    ls -al B* ....&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I am sure that there is some limit&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Wed, 27 Feb 2002 15:51:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ls-command-is-interrupted/m-p/2671136#M50960</guid>
      <dc:creator>Olivier LEGRAND</dc:creator>
      <dc:date>2002-02-27T15:51:45Z</dc:date>
    </item>
  </channel>
</rss>

