Quote:
Originally Posted by redhatwannabe
Code:
oracle4@NODE01:~> ls -ld /u01/app/oracle4/diag/rdbms/orclee/ORCLEE1/trace/*.trc
bash: /bin/ls: Argument list too long
oracle4@NODE01:~>
I encountered this error after the a cron job is run successfully.
|
The shell will attempt to expand the wildcard before passing the arguments to the command, but in this case it seems the wildcard simply expands to such a large number of files that the argument list exceeds what
bash is capable of handling.
How many
.trc files does the directory
/u01/app/oracle4/diag/rdbms/orclee/ORCLEE1/trace/ contain?
Have you tried entering the directory first, and then run the command?
Code:
cd /u01/app/oracle4/diag/rdbms/orclee/ORCLEE1/trace
ls -ld *.trc
That will make each filename exactly 50 characters shorter, and that quickly adds up to a significant number of characters if there are lots of files.