- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- Argument list too long....
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
Discussions
Discussions
Discussions
Forums
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
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-21-2006 03:21 AM
тАО02-21-2006 03:21 AM
i am facing a problem. whenever i issue "ls" command with a '*' wildcard. After showing some 6-7 hundred files, it ends with an error message "Argument list too long".
Any suggestions to avoid this message would be highly arretiable.
Thanks and regards,
Abdul Qayyum.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2006 04:32 AM
тАО02-21-2006 04:32 AM
Re: Argument list too long....
Doctor: "Don't do that."
Why "ls *" instead of "ls"?
The usual solution involves using "find", for
example:
find . -name '*'
The apostrophes in >'*'< prevent the shell
from expanding the wildcard >*<, which is
what causes the too-long argument list in a
command like "ls *".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2006 04:41 AM
тАО02-21-2006 04:41 AM
Re: Argument list too long....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2006 10:29 AM
тАО02-21-2006 10:29 AM
Re: Argument list too long....
There are easier commands for the shell.
But sometimes it is appropropriate to allow for even longer command lines. In that case, try reconfiguring the dynamic param exec_disable_arg_limit.
The default is 0.
Make it 1 to increase the limit.
Something like:
sysconfig -r proc exec_disable_arg_limit=1
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2006 10:23 PM
тАО02-21-2006 10:23 PM
Re: Argument list too long....
nice joke :)
well steven my client usually uses following commands frequently. And gets this error message:
#wc *.INT
ksh: /usr/bin/wc: arg list too long
#ls *.INT
ksh: /usr/bin/ls: arg list too long
And after showing some results it ends with the error message stated above.
Note: Its Tru64 Unix V5.1
Please suggest if i need to change some kernal parameter.
Thanks,
Abdul Qayyum.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2006 10:33 PM
тАО02-21-2006 10:33 PM
Re: Argument list too long....
http://h18000.www1.hp.com/support/askkcs/hpcg/253_0_10495272_2883413.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-22-2006 01:48 AM
тАО02-22-2006 01:48 AM
Re: Argument list too long....
kind of wildcard use tends to cause this
problem.
I'll admit that "wc *.INT" does give you a
nice total at the end, which you won't get
with a "find" or "xargs" method.
I don't know where to find a directory with
too many files in it (and I'm too lazy to
make one), so I can't test this easily, but
it's possible that a different shell would
have a different limit. (I use "GNU bash,
version 3.1.1(1)-release (alpha-dec-osf5.1)",
for example, but I don't know if that's
actually better than your "ksh".)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-22-2006 02:02 AM
тАО02-22-2006 02:02 AM
Re: Argument list too long....
ls |grep "INT"
la |grep "INT" | xargs -t -i wc {}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-22-2006 06:52 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-22-2006 09:01 PM
тАО02-22-2006 09:01 PM
Re: Argument list too long....
Hein is changing the value of "exec_disable_arg_limit" to 1 is the only step to follow or any other parameter also needs to be changed like ARG_MAX?
Thanks,
Abdul Qayyum.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-23-2006 01:52 AM
тАО02-23-2006 01:52 AM
Re: Argument list too long....
Thanks to all.
Abdul Qayyum