- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ls command is interrupted
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2002 08:47 AM
02-25-2002 08:47 AM
ls command is interrupted
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2002 08:52 AM
02-25-2002 08:52 AM
Re: ls command is interrupted
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:
create a script and do the listing with a for-construct:
for i in `ls -al $1`
do
ls -al $i
done
usage :
# script_name name_of_directory_to_list
Of course you can pipe this to a more-commmand.
Allways stay on the bright side of life!
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2002 08:59 AM
02-25-2002 08:59 AM
Re: ls command is interrupted
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.
If you cd to the desired directory, then do your ls -la without any files specified, you should be fine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2002 09:04 AM
02-25-2002 09:04 AM
Re: ls command is interrupted
of course Clay is right... If you need these listings very open, the following script solves the problem also very easy
cd $1
ls -al
cd -
usage:
# script_name absolute_path_to_directory
Allways stay on the bright side of life!
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2002 09:10 AM
02-25-2002 09:10 AM
Re: ls command is interrupted
sh: /usr/bin/ls: The parameter list is too long
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).
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2002 10:29 AM
02-25-2002 10:29 AM
Re: ls command is interrupted
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2002 07:40 AM
02-27-2002 07:40 AM
Re: ls command is interrupted
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.
Try
remsh node "cd dir;ls -la"|while read line
do
echo "$line"
done
Or
remsh node "cd $dir;ls -la > /tmp/$PPID;cat /tmp/$PPID;/bin/rm /tmp/$PPID"
See if they give breaks
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2002 07:46 AM
02-27-2002 07:46 AM
Re: ls command is interrupted
remsh node "ls -la | cat -v"
If it does, it is definately bad characters in file names.
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2002 07:51 AM
02-27-2002 07:51 AM
Re: ls command is interrupted
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.
ls -al A*
ls -al B* ....
I am sure that there is some limit
Regards