![]() |
|
|
|
|
|||||||
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem with Mail command: exec failed. errno=2. | hawkman2k | UNIX for Dummies Questions & Answers | 1 | 04-29-2008 06:50 AM |
| Fatal error: Command failed for target `build_crypto' | sayed_021 | SUN Solaris | 1 | 02-13-2008 08:16 AM |
| Failed to check status code in "rsh" command | nir_s | Shell Programming and Scripting | 9 | 07-03-2006 06:05 AM |
| Failed to get value from a file using sed command | nir_s | Shell Programming and Scripting | 2 | 03-11-2006 01:53 PM |
| Solaris 9: make: Fatal error:Command failed for target | eldiego | UNIX for Dummies Questions & Answers | 2 | 10-28-2005 12:11 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
rm & mv command failed due to too many files.
In our directory there are too many files, & if I try to execute mv *.gz or rm *.l command it fails, providing error string as - 'arg list too long'. This doesnt happen always, is there any way we know, limit on the rm & mv command so we can take care of this failure in future executions ?
|
| Forum Sponsor | ||
|
|
|
|||
|
Quote:
I have created 100 directories and deleted them using rm -r *.abc It works. I dont think there is some kind of limitations to remove directories. TO REMOVE DIRECTORIES recursive "-r" is to be used when give rm command. Otherwise please tell how many sub directories you have under the main directory, then i can simulate the situation and could give you some solutions. Thanks. Varun |
|
|||
|
The problem is when the wildcard expands to a string which is larger than the buffer the kernel allocates for this. Like vgersh99 said, read man xargs or How long can the command line be?
|
|
|||
|
If you don't have a C compiler installed, I don't know how you could find it out. Maybe there is some sort of interface on AIX for printing out kernel constants? Or maybe somebody in the AIX forum could run this for us? I posted a separate thread. There's probably no point in continuing in this thread on this particular topic.
|
|||
| Google UNIX.COM |
| Thread Tools | |
| Display Modes | |
|
|