Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Please HELP: find: The parameter list is too long.

Status
Not open for further replies.

wgre0111

Programmer
Aug 25, 2009
1
US
I know there are plenty of questions like this but I cant seem to get any to work with mine in particular.


find ./* -prune -name "pkg*" -ctime +30 -exec rm -rf {} \;

ksh: /usr/bin/find: 0403-027 The parameter list is too long.


List grew too long and now i need help finding a alternative way to accomplish this task.. It deletes all of the pkg files that are greater then 30 days. PLEASE HELP. Would be nice to just be able to modifiy slightly to accomplish same thing. Or maybe assistance with breaking this down into batches of files at once. Please advise. thanks!
 
Hi,

easiest way is to increase the ncargs value

e.g.:

chdev -l sys0 -a ncargs='16' (if that's not enough try 32 / 64 / 128 / etc.)

Regards
Thomas
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top